UX: update labels to indicate that invite link will be generated (not copied) (#11077)

This commit is contained in:
Arpit Jalan 2020-10-31 07:10:13 +05:30 committed by GitHub
parent 7b312b7bc6
commit b6aaff74be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -2,6 +2,6 @@ import Component from "@ember/component";
export default Component.extend({ export default Component.extend({
didInsertElement() { didInsertElement() {
this._super(...arguments); this._super(...arguments);
$(this.element.querySelector("input")).select().focus(); $(this.element.querySelector(".invite-link-input")).select().focus();
}, },
}); });

View File

@ -66,7 +66,7 @@ export default DiscourseRoute.extend({
const panels = [ const panels = [
{ {
id: "invite-link", id: "invite-link",
title: "user.invited.generate_link", title: "user.invited.invite_link.title",
model: { model: {
inviteModel: this.currentUser, inviteModel: this.currentUser,
userInvitedShow: this.controllerFor("user-invited-show"), userInvitedShow: this.controllerFor("user-invited-show"),

View File

@ -1390,9 +1390,9 @@ en:
link_groups: Groups link_groups: Groups
link_expires_at: Expires link_expires_at: Expires
create: "Send Invite" create: "Send Invite"
copy_link: "Copy Link" copy_link: "Show Link"
generate_link: "Copy Invite Link" generate_link: "Create Invite Link"
link_generated: "Invite link generated successfully!" link_generated: "Here's your invite link!"
valid_for: "Invite link is only valid for this email address: %{email}" valid_for: "Invite link is only valid for this email address: %{email}"
single_user: "Invite by email" single_user: "Invite by email"
multiple_user: "Invite by link" multiple_user: "Invite by link"