Skip to content

fix(invite): Send invitation email independently of share creation#1510

Draft
nfebe wants to merge 1 commit intomainfrom
fix/send-invite-email-on-guest-creation
Draft

fix(invite): Send invitation email independently of share creation#1510
nfebe wants to merge 1 commit intomainfrom
fix/send-invite-email-on-guest-creation

Conversation

@nfebe
Copy link
Copy Markdown
Contributor

@nfebe nfebe commented Mar 19, 2026

Previously, when inviting a guest from the files sharing dialog, the invitation email was suppressed (sendInvite was hardcoded to false) because the share notification email was expected to be sent on share save. This meant if the user didn't click "Save share", no email was ever sent. Added a checkbox to the guest form allowing users to control whether the invitation email is sent, defaulting to true.

Before After
Screenshot 2026-03-19 at 8 08 18 PM Screenshot 2026-03-19 at 8 01 27 PM

Previously, when inviting a guest from the files sharing dialog,
the invitation email was suppressed (sendInvite was hardcoded to
false) because the share notification email was expected to be sent
on share save. This meant if the user didn't click "Save share",
no email was ever sent. Added a checkbox to the guest form allowing
users to control whether the invitation email is sent, defaulting
to checked.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe requested review from artonge, leftybournes, skjnldsv and susnux and removed request for leftybournes March 19, 2026 19:10
Copy link
Copy Markdown
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense


<!-- Send invite email -->
<div class="form-group">
<NcCheckboxRadioSwitch :checked.sync="sendInvite"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked is deprecated, so switch to v-model to be future proof:

Suggested change
<NcCheckboxRadioSwitch :checked.sync="sendInvite"
<NcCheckboxRadioSwitch v-model="sendInvite"

<!-- Send invite email -->
<div class="form-group">
<NcCheckboxRadioSwitch :checked.sync="sendInvite"
:disabled="loading">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is a single switch an not a multi-select I think UX wise a switch is the proper type :)

Suggested change
:disabled="loading">
:disabled="loading"
type="switch">

@skjnldsv skjnldsv added bug Something isn't working 2. developing Work in progress labels Apr 1, 2026
@skjnldsv skjnldsv marked this pull request as draft April 1, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants