mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: migrate generated-invite-link to gjs (#27799)
This commit is contained in:
parent
a60e1b35ed
commit
ea822de9e2
@ -0,0 +1,20 @@
|
||||
import i18n from "discourse-common/helpers/i18n";
|
||||
|
||||
const GeneratedInviteLink = <template>
|
||||
<div>
|
||||
<p>{{i18n "user.invited.link_generated"}}</p>
|
||||
<p>
|
||||
<input
|
||||
value={{@link}}
|
||||
class="invite-link-input"
|
||||
type="text"
|
||||
autofocus="autofocus"
|
||||
/>
|
||||
</p>
|
||||
{{#if @email}}
|
||||
<p>{{i18n "user.invited.valid_for" email=@email}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
</template>;
|
||||
|
||||
export default GeneratedInviteLink;
|
@ -1,7 +0,0 @@
|
||||
<p>{{i18n "user.invited.link_generated"}}</p>
|
||||
<p>
|
||||
<input value={{this.link}} class="invite-link-input" type="text" />
|
||||
</p>
|
||||
{{#if this.email}}
|
||||
<p>{{i18n "user.invited.valid_for" email=this.email}}</p>
|
||||
{{/if}}
|
@ -1,9 +0,0 @@
|
||||
import Component from "@ember/component";
|
||||
export default Component.extend({
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
const invite = this.element.querySelector(".invite-link-input");
|
||||
invite.focus();
|
||||
invite.select();
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user