From f0ad47100748ba5f660b597787422b1b302e64c0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 21 Jan 2020 14:05:22 +0100 Subject: Update a little bit user dropdown message --- client/src/app/+admin/users/user-list/user-list.component.ts | 2 +- client/src/app/shared/buttons/action-dropdown.component.html | 1 + .../src/app/shared/moderation/user-moderation-dropdown.component.ts | 6 +++--- .../src/app/shared/user-subscription/remote-subscribe.component.ts | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'client/src') diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts index a596251f6..7c5e8eaa4 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.ts +++ b/client/src/app/+admin/users/user-list/user-list.component.ts @@ -63,7 +63,7 @@ export class UserListComponent extends RestTable implements OnInit { }, { label: this.i18n('Ban'), - description: this.i18n('Videos will be kept as private, comments will be kept as is.'), + description: this.i18n('User won\'t be able to login anymore, but videos and comments will be kept as is.'), handler: users => this.openBanUserModal(users), isDisplayed: users => users.every(u => this.authUser.canManage(u) && u.blocked === false) }, diff --git a/client/src/app/shared/buttons/action-dropdown.component.html b/client/src/app/shared/buttons/action-dropdown.component.html index 54f5bf97c..cd993db9f 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.html +++ b/client/src/app/shared/buttons/action-dropdown.component.html @@ -17,6 +17,7 @@ +
{{ action.label }} {{ action.description }} diff --git a/client/src/app/shared/moderation/user-moderation-dropdown.component.ts b/client/src/app/shared/moderation/user-moderation-dropdown.component.ts index 7ae5f40e3..11d8588f4 100644 --- a/client/src/app/shared/moderation/user-moderation-dropdown.component.ts +++ b/client/src/app/shared/moderation/user-moderation-dropdown.component.ts @@ -243,18 +243,18 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { if (this.user && authUser.hasRight(UserRight.MANAGE_USERS) && authUser.canManage(this.user)) { this.userActions.push([ { - label: this.i18n('Edit'), + label: this.i18n('Edit user'), description: this.i18n('Change quota, role, and more.'), linkBuilder: ({ user }) => this.getRouterUserEditLink(user) }, { - label: this.i18n('Delete'), + label: this.i18n('Delete user'), description: this.i18n('Videos will be deleted, comments will be tombstoned.'), handler: ({ user }) => this.removeUser(user) }, { label: this.i18n('Ban'), - description: this.i18n('Videos will be kept as private, comments will be kept as is.'), + description: this.i18n('User won\'t be able to login anymore, but videos and comments will be kept as is.'), handler: ({ user }) => this.openBanUserModal(user), isDisplayed: ({ user }) => !user.blocked }, diff --git a/client/src/app/shared/user-subscription/remote-subscribe.component.ts b/client/src/app/shared/user-subscription/remote-subscribe.component.ts index 63e7cd5d9..befdb7157 100644 --- a/client/src/app/shared/user-subscription/remote-subscribe.component.ts +++ b/client/src/app/shared/user-subscription/remote-subscribe.component.ts @@ -39,6 +39,7 @@ export class RemoteSubscribeComponent extends FormReactive implements OnInit { const address = this.form.value['text'] const [ username, hostname ] = address.split('@') + // Should not have CORS error because https://tools.ietf.org/html/rfc7033#section-5 fetch(`https://${hostname}/.well-known/webfinger?resource=acct:${username}@${hostname}`) .then(response => response.json()) .then(data => new Promise((resolve, reject) => { -- cgit v1.2.3