mirror of
https://github.com/discourse/discourse.git
synced 2025-01-15 22:52:41 +08:00
FIX: Improve sidebar invite link highlight persisting, link tabbing and activation behavior (#30734)
This commit is contained in:
parent
5a565105c9
commit
8535a8595c
|
@ -242,8 +242,10 @@ export default class CreateInvite extends Component {
|
|||
}
|
||||
|
||||
@action
|
||||
showAdvancedMode() {
|
||||
showAdvancedMode(event) {
|
||||
this.displayAdvancedOptions = true;
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
@action
|
||||
|
@ -326,7 +328,9 @@ export default class CreateInvite extends Component {
|
|||
<a
|
||||
class="edit-link-options"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
{{on "click" this.showAdvancedMode}}
|
||||
{{on "keydown" this.showAdvancedMode}}
|
||||
>{{i18n "user.invited.invite.edit_link_options"}}</a>
|
||||
</p>
|
||||
{{else}}
|
||||
|
@ -463,6 +467,7 @@ export default class CreateInvite extends Component {
|
|||
@action={{this.createLink}}
|
||||
@disabled={{this.saving}}
|
||||
class="btn-primary save-invite"
|
||||
autofocus="true"
|
||||
/>
|
||||
{{else}}
|
||||
<DButton
|
||||
|
@ -484,6 +489,7 @@ export default class CreateInvite extends Component {
|
|||
}}
|
||||
@action={{this.saveInviteAndSendEmail}}
|
||||
@disabled={{this.saving}}
|
||||
autofocus="true"
|
||||
class="btn-primary save-invite-and-send-email"
|
||||
/>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user