diff --git a/pkg/webui/account/components/oauth-client-form/messages.js b/pkg/webui/account/components/oauth-client-form/messages.js index 2b204a8fb71..bfbc36f2e70 100644 --- a/pkg/webui/account/components/oauth-client-form/messages.js +++ b/pkg/webui/account/components/oauth-client-form/messages.js @@ -21,7 +21,6 @@ export default defineMessages({ clientDescDescription: 'The description is displayed to the user when authorizing the client. Use it to explain the purpose of your client.', createClient: 'Create OAuth client', - deleteTitle: 'Are you sure you want to delete this account?', deleteWarning: 'This will PERMANENTLY DELETE THIS OAUTH CLIENT and LOCK THE OAUTH ID. Make sure you assign new collaborators to such entities if you plan to continue using them.', purgeWarning: @@ -41,9 +40,7 @@ export default defineMessages({ 'If set, the authorization page will visually indicate endorsement to improve trust', grants: 'Grant types', grantsDesc: 'OAuth flows that can be used for the client to get a token', - grantAuthorizationLabel: 'Authorization code', grantRefreshTokenLabel: 'Refresh token', - grantPasswordLabel: 'Password', deleteClient: 'Delete OAuth client', urlsPlaceholder: 'https://example.com/oauth/callback', rightsWarning: diff --git a/pkg/webui/account/containers/authorizations-table/index.js b/pkg/webui/account/containers/authorizations-table/index.js index f7ac141a724..6f9fad70077 100644 --- a/pkg/webui/account/containers/authorizations-table/index.js +++ b/pkg/webui/account/containers/authorizations-table/index.js @@ -14,7 +14,6 @@ import React from 'react' import { useSelector } from 'react-redux' -import { defineMessages } from 'react-intl' import { createSelector } from 'reselect' import FetchTable from '@ttn-lw/containers/fetch-table' @@ -32,11 +31,6 @@ import { } from '@account/store/selectors/authorizations' import { selectUserId } from '@account/store/selectors/user' -const m = defineMessages({ - clientId: 'Client ID', - tableTitle: 'OAuth client authorizations', -}) - const getItemPathPrefix = item => `${item.client_ids.client_id}` const OAuthClientAuthorizationsTable = () => { @@ -46,7 +40,7 @@ const OAuthClientAuthorizationsTable = () => { const baseHeaders = [ { name: 'client_ids.client_id', - displayName: m.clientId, + displayName: sharedMessages.clientId, width: 20, }, { @@ -84,7 +78,7 @@ const OAuthClientAuthorizationsTable = () => { getItemsAction={getItems} baseDataSelector={baseDataSelector} getItemPathPrefix={getItemPathPrefix} - tableTitle={} + tableTitle={} clickable /> ) diff --git a/pkg/webui/account/containers/clients-table/index.js b/pkg/webui/account/containers/clients-table/index.js index fefbb8dd9f9..36d2c5f33c8 100644 --- a/pkg/webui/account/containers/clients-table/index.js +++ b/pkg/webui/account/containers/clients-table/index.js @@ -44,7 +44,6 @@ const m = defineMessages({ restoreFail: 'There was an error and OAuth client could not be restored', purgeSuccess: 'OAuth client purged', purgeFail: 'There was an error and the OAuth client could not be purged', - addClient: 'Add OAuth client', }) const OWNED_TAB = 'owned' @@ -200,7 +199,7 @@ const ClientsTable = () => { { @@ -87,7 +84,7 @@ const CollaboratorsTable = props => { const baseHeaders = [ { name: 'ids', - displayName: m.id, + displayName: sharedMessages.userOrgId, render: ids => { const isUser = 'user_ids' in ids const collaboratorId = getCollaboratorId({ ids }) @@ -144,7 +141,7 @@ const CollaboratorsTable = props => {