mirror of
https://github.com/discourse/discourse.git
synced 2025-01-16 00:42:43 +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
|
@action
|
||||||
showAdvancedMode() {
|
showAdvancedMode(event) {
|
||||||
this.displayAdvancedOptions = true;
|
this.displayAdvancedOptions = true;
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
@ -326,7 +328,9 @@ export default class CreateInvite extends Component {
|
||||||
<a
|
<a
|
||||||
class="edit-link-options"
|
class="edit-link-options"
|
||||||
role="button"
|
role="button"
|
||||||
|
tabindex="0"
|
||||||
{{on "click" this.showAdvancedMode}}
|
{{on "click" this.showAdvancedMode}}
|
||||||
|
{{on "keydown" this.showAdvancedMode}}
|
||||||
>{{i18n "user.invited.invite.edit_link_options"}}</a>
|
>{{i18n "user.invited.invite.edit_link_options"}}</a>
|
||||||
</p>
|
</p>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -463,6 +467,7 @@ export default class CreateInvite extends Component {
|
||||||
@action={{this.createLink}}
|
@action={{this.createLink}}
|
||||||
@disabled={{this.saving}}
|
@disabled={{this.saving}}
|
||||||
class="btn-primary save-invite"
|
class="btn-primary save-invite"
|
||||||
|
autofocus="true"
|
||||||
/>
|
/>
|
||||||
{{else}}
|
{{else}}
|
||||||
<DButton
|
<DButton
|
||||||
|
@ -484,6 +489,7 @@ export default class CreateInvite extends Component {
|
||||||
}}
|
}}
|
||||||
@action={{this.saveInviteAndSendEmail}}
|
@action={{this.saveInviteAndSendEmail}}
|
||||||
@disabled={{this.saving}}
|
@disabled={{this.saving}}
|
||||||
|
autofocus="true"
|
||||||
class="btn-primary save-invite-and-send-email"
|
class="btn-primary save-invite-and-send-email"
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user