From c1d93bfd7c29ac7882d0422ebdc3306a3849e55c Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 4 Apr 2021 16:56:16 +0200 Subject: [PATCH] web: fix TableColumn sort fields being translated Signed-off-by: Jens Langhammer --- web/src/elements/events/ObjectChangelog.ts | 8 +- web/src/elements/oauth/UserCodeList.ts | 6 +- web/src/elements/oauth/UserRefreshList.ts | 6 +- web/src/elements/user/UserConsentList.ts | 4 +- web/src/locales/en.po | 175 +----------------- web/src/locales/pseudo-LOCALE.po | 175 +----------------- .../pages/applications/ApplicationListPage.ts | 4 +- .../crypto/CertificateKeyPairListPage.ts | 2 +- web/src/pages/events/EventListPage.ts | 8 +- web/src/pages/events/RuleListPage.ts | 6 +- web/src/pages/events/TransportListPage.ts | 4 +- web/src/pages/flows/FlowListPage.ts | 6 +- web/src/pages/groups/GroupListPage.ts | 4 +- web/src/pages/outposts/OutpostListPage.ts | 2 +- .../outposts/ServiceConnectionListPage.ts | 4 +- web/src/pages/policies/BoundPoliciesList.ts | 6 +- web/src/pages/policies/PolicyListPage.ts | 2 +- .../PropertyMappingListPage.ts | 4 +- web/src/pages/providers/ProviderListPage.ts | 4 +- web/src/pages/sources/SourcesListPage.ts | 4 +- web/src/pages/stages/StageListPage.ts | 2 +- .../stages/invitation/InvitationListPage.ts | 4 +- web/src/pages/stages/prompt/PromptListPage.ts | 8 +- .../pages/system-tasks/SystemTaskListPage.ts | 2 +- web/src/pages/tokens/TokenListPage.ts | 8 +- .../user-settings/tokens/UserTokenList.ts | 2 +- web/src/pages/users/UserListPage.ts | 6 +- 27 files changed, 72 insertions(+), 394 deletions(-) diff --git a/web/src/elements/events/ObjectChangelog.ts b/web/src/elements/events/ObjectChangelog.ts index ee709d4d8..b14f913d9 100644 --- a/web/src/elements/events/ObjectChangelog.ts +++ b/web/src/elements/events/ObjectChangelog.ts @@ -44,10 +44,10 @@ export class ObjectChangelog extends Table { columns(): TableColumn[] { return [ - new TableColumn(t`Action`, t`action`), - new TableColumn(t`User`, t`enabled`), - new TableColumn(t`Creation Date`, t`created`), - new TableColumn(t`Client IP`, t`client_ip`), + new TableColumn(t`Action`, "action"), + new TableColumn(t`User`, "enabled"), + new TableColumn(t`Creation Date`, "created"), + new TableColumn(t`Client IP`, "client_ip"), ]; } diff --git a/web/src/elements/oauth/UserCodeList.ts b/web/src/elements/oauth/UserCodeList.ts index f51ff7929..3bbc89496 100644 --- a/web/src/elements/oauth/UserCodeList.ts +++ b/web/src/elements/oauth/UserCodeList.ts @@ -26,9 +26,9 @@ export class UserOAuthCodeList extends Table { columns(): TableColumn[] { return [ - new TableColumn(t`Provider`, t`provider`), - new TableColumn(t`Expires`, t`expires`), - new TableColumn(t`Scopes`, t`scope`), + new TableColumn(t`Provider`, "provider"), + new TableColumn(t`Expires`, "expires"), + new TableColumn(t`Scopes`, "scope"), new TableColumn(""), ]; } diff --git a/web/src/elements/oauth/UserRefreshList.ts b/web/src/elements/oauth/UserRefreshList.ts index 5d9a52163..8a0154aa5 100644 --- a/web/src/elements/oauth/UserRefreshList.ts +++ b/web/src/elements/oauth/UserRefreshList.ts @@ -26,9 +26,9 @@ export class UserOAuthRefreshList extends Table { columns(): TableColumn[] { return [ - new TableColumn(t`Provider`, t`provider`), - new TableColumn(t`Expires`, t`expires`), - new TableColumn(t`Scopes`, t`scope`), + new TableColumn(t`Provider`, "provider"), + new TableColumn(t`Expires`, "expires"), + new TableColumn(t`Scopes`, "scope"), new TableColumn(""), ]; } diff --git a/web/src/elements/user/UserConsentList.ts b/web/src/elements/user/UserConsentList.ts index 4c1174d7d..7067adda5 100644 --- a/web/src/elements/user/UserConsentList.ts +++ b/web/src/elements/user/UserConsentList.ts @@ -26,8 +26,8 @@ export class UserConsentList extends Table { columns(): TableColumn[] { return [ - new TableColumn(t`Application`, t`application`), - new TableColumn(t`Expires`, t`expires`), + new TableColumn(t`Application`, "application"), + new TableColumn(t`Expires`, "expires"), new TableColumn(""), ]; } diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 431d88a73..5cc073088 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -1,17 +1,11 @@ msgid "" msgstr "" -"POT-Creation-Date: 2021-04-03 20:37+0200\n" +"POT-Creation-Date: 2021-04-04 16:55+0200\n" "Mime-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: @lingui/cli\n" "Language: en\n" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: \n" -"Last-Translator: \n" -"Language-Team: \n" -"Plural-Forms: \n" #: src/pages/policies/BoundPoliciesList.ts:54 msgid "-" @@ -58,10 +52,6 @@ msgstr "Access Key" msgid "Access token URL" msgstr "Access token URL" -#: src/pages/stages/email/EmailStageForm.ts:160 -#~ msgid "Account confirmation" -#~ msgstr "Account confirmation" - #: src/elements/events/ObjectChangelog.ts:38 #: src/pages/events/EventListPage.ts:43 #: src/pages/policies/event_matcher/EventMatcherPolicyForm.ts:74 @@ -1081,7 +1071,11 @@ msgstr "Evaluate policies when the Stage is present to the user." msgid "Event Log" msgstr "Event Log" -#: src/pages/events/EventInfoPage.ts:37 +#: src/pages/events/EventInfoPage.ts:45 +msgid "Event info" +msgstr "Event info" + +#: src/pages/events/EventInfoPage.ts:38 msgid "Event {0}" msgstr "Event {0}" @@ -1984,7 +1978,7 @@ msgid "Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3) msgstr "Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3)." #: src/elements/events/ObjectChangelog.ts:50 -#: src/pages/events/EventListPage.ts:56 +#: src/pages/events/EventListPage.ts:57 msgid "On behalf of {0}" msgstr "On behalf of {0}" @@ -2113,10 +2107,6 @@ msgstr "Password" msgid "Password field" msgstr "Password field" -#: src/pages/stages/email/EmailStageForm.ts:163 -#~ msgid "Password reset" -#~ msgstr "Password reset" - #: src/pages/stages/prompt/PromptForm.ts:54 msgid "Password: Masked input, password is validated against sources. Policies still have to be applied to this Stage. If two of these are used in the same stage, they are ensured to be identical." msgstr "Password: Masked input, password is validated against sources. Policies still have to be applied to this Stage. If two of these are used in the same stage, they are ensured to be identical." @@ -3646,19 +3636,6 @@ msgstr "Yes" msgid "You're currently impersonating {0}." msgstr "You're currently impersonating {0}." -#: src/elements/events/ObjectChangelog.ts:38 -#: src/pages/events/EventListPage.ts:43 -msgid "action" -msgstr "action" - -#: src/pages/users/UserListPage.ts:50 -msgid "active" -msgstr "active" - -#: src/elements/user/UserConsentList.ts:29 -msgid "application" -msgstr "application" - #: src/pages/stages/password/PasswordStageForm.ts:76 msgid "authentik Builtin Database" msgstr "authentik Builtin Database" @@ -3667,148 +3644,10 @@ msgstr "authentik Builtin Database" msgid "authentik LDAP Backend" msgstr "authentik LDAP Backend" -#: src/elements/events/ObjectChangelog.ts:41 -#: src/pages/events/EventListPage.ts:46 -msgid "client_ip" -msgstr "client_ip" - -#: src/elements/events/ObjectChangelog.ts:40 -#: src/pages/events/EventListPage.ts:45 -msgid "created" -msgstr "created" - -#: src/pages/stages/invitation/InvitationListPage.ts:47 -msgid "created_by" -msgstr "created_by" - -#: src/pages/flows/FlowListPage.ts:48 -msgid "designation" -msgstr "designation" - -#: src/elements/events/ObjectChangelog.ts:39 -#: src/pages/policies/BoundPoliciesList.ts:36 -msgid "enabled" -msgstr "enabled" - -#: src/elements/oauth/UserCodeList.ts:30 -#: src/elements/oauth/UserRefreshList.ts:30 -#: src/elements/user/UserConsentList.ts:30 -#: src/pages/tokens/TokenListPage.ts:47 -msgid "expires" -msgstr "expires" - -#: src/pages/tokens/TokenListPage.ts:46 -msgid "expiring" -msgstr "expiring" - -#: src/pages/stages/prompt/PromptListPage.ts:46 -msgid "field_key" -msgstr "field_key" - -#: src/pages/events/RuleListPage.ts:49 -msgid "group" -msgstr "group" - -#: src/pages/tokens/TokenListPage.ts:44 -#: src/pages/user-settings/tokens/UserTokenList.ts:39 -msgid "identifier" -msgstr "identifier" - -#: src/pages/stages/prompt/PromptListPage.ts:47 -msgid "label" -msgstr "label" - -#: src/pages/users/UserListPage.ts:51 -msgid "last_login" -msgstr "last_login" - -#: src/pages/outposts/ServiceConnectionListPage.ts:54 -msgid "local" -msgstr "local" - -#: src/pages/events/TransportListPage.ts:47 -msgid "mode" -msgstr "mode" - -#: src/pages/applications/ApplicationListPage.ts:57 -#: src/pages/crypto/CertificateKeyPairListPage.ts:51 -#: src/pages/events/RuleListPage.ts:47 -#: src/pages/events/TransportListPage.ts:46 -#: src/pages/flows/FlowListPage.ts:47 -#: src/pages/groups/GroupListPage.ts:45 -#: src/pages/outposts/OutpostListPage.ts:49 -#: src/pages/outposts/ServiceConnectionListPage.ts:52 -#: src/pages/policies/PolicyListPage.ts:56 -#: src/pages/property-mappings/PropertyMappingListPage.ts:54 -#: src/pages/providers/ProviderListPage.ts:52 -#: src/pages/sources/SourcesListPage.ts:51 -#: src/pages/stages/StageListPage.ts:65 -msgid "name" -msgstr "name" - #: src/elements/Tabs.ts:62 msgid "no tabs defined" msgstr "no tabs defined" -#: src/pages/policies/BoundPoliciesList.ts:37 -#: src/pages/stages/prompt/PromptListPage.ts:49 -msgid "order" -msgstr "order" - -#: src/pages/groups/GroupListPage.ts:46 -msgid "parent" -msgstr "parent" - -#: src/pages/stages/invitation/InvitationListPage.ts:46 -msgid "pk" -msgstr "pk" - -#: src/elements/oauth/UserCodeList.ts:29 -#: src/elements/oauth/UserRefreshList.ts:29 -msgid "provider" -msgstr "provider" - -#: src/elements/oauth/UserCodeList.ts:31 -#: src/elements/oauth/UserRefreshList.ts:31 -msgid "scope" -msgstr "scope" - -#: src/pages/events/RuleListPage.ts:48 -msgid "severity" -msgstr "severity" - -#: src/pages/applications/ApplicationListPage.ts:58 -#: src/pages/flows/FlowListPage.ts:46 -msgid "slug" -msgstr "slug" - -#: src/pages/system-tasks/SystemTaskListPage.ts:53 -msgid "task_name" -msgstr "task_name" - -#: src/pages/policies/BoundPoliciesList.ts:38 -msgid "timeout" -msgstr "timeout" - -#: src/pages/property-mappings/PropertyMappingListPage.ts:55 -#: src/pages/providers/ProviderListPage.ts:54 -#: src/pages/stages/prompt/PromptListPage.ts:48 -msgid "type" -msgstr "type" - -#: src/pages/events/EventListPage.ts:44 -#: src/pages/tokens/TokenListPage.ts:45 -msgid "user" -msgstr "user" - -#: src/pages/users/UserListPage.ts:49 -msgid "username" -msgstr "username" - -#: src/pages/sources/SourcesListPage.ts:52 -msgid "verboseName" -msgstr "verboseName" - #: src/elements/Expand.ts:28 #: src/elements/Expand.ts:28 #: src/elements/Page.ts:11 diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index aaf4b1d9d..e88ace251 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -1,17 +1,11 @@ msgid "" msgstr "" -"POT-Creation-Date: 2021-04-03 20:37+0200\n" +"POT-Creation-Date: 2021-04-04 16:55+0200\n" "Mime-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: @lingui/cli\n" "Language: pseudo-LOCALE\n" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: \n" -"Last-Translator: \n" -"Language-Team: \n" -"Plural-Forms: \n" #: src/pages/policies/BoundPoliciesList.ts:54 msgid "-" @@ -58,10 +52,6 @@ msgstr "" msgid "Access token URL" msgstr "" -#: src/pages/stages/email/EmailStageForm.ts:160 -#~ msgid "Account confirmation" -#~ msgstr "" - #: src/elements/events/ObjectChangelog.ts:38 #: src/pages/events/EventListPage.ts:43 #: src/pages/policies/event_matcher/EventMatcherPolicyForm.ts:74 @@ -1077,7 +1067,11 @@ msgstr "" msgid "Event Log" msgstr "" -#: src/pages/events/EventInfoPage.ts:37 +#: src/pages/events/EventInfoPage.ts:45 +msgid "Event info" +msgstr "" + +#: src/pages/events/EventInfoPage.ts:38 msgid "Event {0}" msgstr "" @@ -1980,7 +1974,7 @@ msgid "Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3) msgstr "" #: src/elements/events/ObjectChangelog.ts:50 -#: src/pages/events/EventListPage.ts:56 +#: src/pages/events/EventListPage.ts:57 msgid "On behalf of {0}" msgstr "" @@ -2109,10 +2103,6 @@ msgstr "" msgid "Password field" msgstr "" -#: src/pages/stages/email/EmailStageForm.ts:163 -#~ msgid "Password reset" -#~ msgstr "" - #: src/pages/stages/prompt/PromptForm.ts:54 msgid "Password: Masked input, password is validated against sources. Policies still have to be applied to this Stage. If two of these are used in the same stage, they are ensured to be identical." msgstr "" @@ -3642,19 +3632,6 @@ msgstr "" msgid "You're currently impersonating {0}." msgstr "" -#: src/elements/events/ObjectChangelog.ts:38 -#: src/pages/events/EventListPage.ts:43 -msgid "action" -msgstr "" - -#: src/pages/users/UserListPage.ts:50 -msgid "active" -msgstr "" - -#: src/elements/user/UserConsentList.ts:29 -msgid "application" -msgstr "" - #: src/pages/stages/password/PasswordStageForm.ts:76 msgid "authentik Builtin Database" msgstr "" @@ -3663,148 +3640,10 @@ msgstr "" msgid "authentik LDAP Backend" msgstr "" -#: src/elements/events/ObjectChangelog.ts:41 -#: src/pages/events/EventListPage.ts:46 -msgid "client_ip" -msgstr "" - -#: src/elements/events/ObjectChangelog.ts:40 -#: src/pages/events/EventListPage.ts:45 -msgid "created" -msgstr "" - -#: src/pages/stages/invitation/InvitationListPage.ts:47 -msgid "created_by" -msgstr "" - -#: src/pages/flows/FlowListPage.ts:48 -msgid "designation" -msgstr "" - -#: src/elements/events/ObjectChangelog.ts:39 -#: src/pages/policies/BoundPoliciesList.ts:36 -msgid "enabled" -msgstr "" - -#: src/elements/oauth/UserCodeList.ts:30 -#: src/elements/oauth/UserRefreshList.ts:30 -#: src/elements/user/UserConsentList.ts:30 -#: src/pages/tokens/TokenListPage.ts:47 -msgid "expires" -msgstr "" - -#: src/pages/tokens/TokenListPage.ts:46 -msgid "expiring" -msgstr "" - -#: src/pages/stages/prompt/PromptListPage.ts:46 -msgid "field_key" -msgstr "" - -#: src/pages/events/RuleListPage.ts:49 -msgid "group" -msgstr "" - -#: src/pages/tokens/TokenListPage.ts:44 -#: src/pages/user-settings/tokens/UserTokenList.ts:39 -msgid "identifier" -msgstr "" - -#: src/pages/stages/prompt/PromptListPage.ts:47 -msgid "label" -msgstr "" - -#: src/pages/users/UserListPage.ts:51 -msgid "last_login" -msgstr "" - -#: src/pages/outposts/ServiceConnectionListPage.ts:54 -msgid "local" -msgstr "" - -#: src/pages/events/TransportListPage.ts:47 -msgid "mode" -msgstr "" - -#: src/pages/applications/ApplicationListPage.ts:57 -#: src/pages/crypto/CertificateKeyPairListPage.ts:51 -#: src/pages/events/RuleListPage.ts:47 -#: src/pages/events/TransportListPage.ts:46 -#: src/pages/flows/FlowListPage.ts:47 -#: src/pages/groups/GroupListPage.ts:45 -#: src/pages/outposts/OutpostListPage.ts:49 -#: src/pages/outposts/ServiceConnectionListPage.ts:52 -#: src/pages/policies/PolicyListPage.ts:56 -#: src/pages/property-mappings/PropertyMappingListPage.ts:54 -#: src/pages/providers/ProviderListPage.ts:52 -#: src/pages/sources/SourcesListPage.ts:51 -#: src/pages/stages/StageListPage.ts:65 -msgid "name" -msgstr "" - #: src/elements/Tabs.ts:62 msgid "no tabs defined" msgstr "" -#: src/pages/policies/BoundPoliciesList.ts:37 -#: src/pages/stages/prompt/PromptListPage.ts:49 -msgid "order" -msgstr "" - -#: src/pages/groups/GroupListPage.ts:46 -msgid "parent" -msgstr "" - -#: src/pages/stages/invitation/InvitationListPage.ts:46 -msgid "pk" -msgstr "" - -#: src/elements/oauth/UserCodeList.ts:29 -#: src/elements/oauth/UserRefreshList.ts:29 -msgid "provider" -msgstr "" - -#: src/elements/oauth/UserCodeList.ts:31 -#: src/elements/oauth/UserRefreshList.ts:31 -msgid "scope" -msgstr "" - -#: src/pages/events/RuleListPage.ts:48 -msgid "severity" -msgstr "" - -#: src/pages/applications/ApplicationListPage.ts:58 -#: src/pages/flows/FlowListPage.ts:46 -msgid "slug" -msgstr "" - -#: src/pages/system-tasks/SystemTaskListPage.ts:53 -msgid "task_name" -msgstr "" - -#: src/pages/policies/BoundPoliciesList.ts:38 -msgid "timeout" -msgstr "" - -#: src/pages/property-mappings/PropertyMappingListPage.ts:55 -#: src/pages/providers/ProviderListPage.ts:54 -#: src/pages/stages/prompt/PromptListPage.ts:48 -msgid "type" -msgstr "" - -#: src/pages/events/EventListPage.ts:44 -#: src/pages/tokens/TokenListPage.ts:45 -msgid "user" -msgstr "" - -#: src/pages/users/UserListPage.ts:49 -msgid "username" -msgstr "" - -#: src/pages/sources/SourcesListPage.ts:52 -msgid "verboseName" -msgstr "" - #: src/elements/Expand.ts:28 #: src/elements/Expand.ts:28 #: src/elements/Page.ts:11 diff --git a/web/src/pages/applications/ApplicationListPage.ts b/web/src/pages/applications/ApplicationListPage.ts index 1d65470e2..6aa68ec55 100644 --- a/web/src/pages/applications/ApplicationListPage.ts +++ b/web/src/pages/applications/ApplicationListPage.ts @@ -54,8 +54,8 @@ export class ApplicationListPage extends TablePage { columns(): TableColumn[] { return [ new TableColumn(""), - new TableColumn(t`Name`, t`name`), - new TableColumn(t`Slug`, t`slug`), + new TableColumn(t`Name`, "name"), + new TableColumn(t`Slug`, "slug"), new TableColumn(t`Provider`), new TableColumn(t`Provider Type`), new TableColumn(""), diff --git a/web/src/pages/crypto/CertificateKeyPairListPage.ts b/web/src/pages/crypto/CertificateKeyPairListPage.ts index e7ec35600..5add00041 100644 --- a/web/src/pages/crypto/CertificateKeyPairListPage.ts +++ b/web/src/pages/crypto/CertificateKeyPairListPage.ts @@ -50,7 +50,7 @@ export class CertificateKeyPairListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), + new TableColumn(t`Name`, "name"), new TableColumn(t`Private key available?`), new TableColumn(t`Expiry date`), new TableColumn(""), diff --git a/web/src/pages/events/EventListPage.ts b/web/src/pages/events/EventListPage.ts index ac0190f48..26433c00d 100644 --- a/web/src/pages/events/EventListPage.ts +++ b/web/src/pages/events/EventListPage.ts @@ -40,10 +40,10 @@ export class EventListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Action`, t`action`), - new TableColumn(t`User`, t`user`), - new TableColumn(t`Creation Date`, t`created`), - new TableColumn(t`Client IP`, t`client_ip`), + new TableColumn(t`Action`, "action"), + new TableColumn(t`User`, "user"), + new TableColumn(t`Creation Date`, "created"), + new TableColumn(t`Client IP`, "client_ip"), new TableColumn(""), ]; } diff --git a/web/src/pages/events/RuleListPage.ts b/web/src/pages/events/RuleListPage.ts index de7db0a1c..449f0f864 100644 --- a/web/src/pages/events/RuleListPage.ts +++ b/web/src/pages/events/RuleListPage.ts @@ -44,9 +44,9 @@ export class RuleListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), - new TableColumn(t`Severity`, t`severity`), - new TableColumn(t`Sent to group`, t`group`), + new TableColumn(t`Name`, "name"), + new TableColumn(t`Severity`, "severity"), + new TableColumn(t`Sent to group`, "group"), new TableColumn(""), ]; } diff --git a/web/src/pages/events/TransportListPage.ts b/web/src/pages/events/TransportListPage.ts index 00a01c19a..76870fc8e 100644 --- a/web/src/pages/events/TransportListPage.ts +++ b/web/src/pages/events/TransportListPage.ts @@ -42,8 +42,8 @@ export class TransportListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), - new TableColumn(t`Mode`, t`mode`), + new TableColumn(t`Name`, "name"), + new TableColumn(t`Mode`, "mode"), new TableColumn(""), ]; } diff --git a/web/src/pages/flows/FlowListPage.ts b/web/src/pages/flows/FlowListPage.ts index f0057b840..b335a6d99 100644 --- a/web/src/pages/flows/FlowListPage.ts +++ b/web/src/pages/flows/FlowListPage.ts @@ -42,9 +42,9 @@ export class FlowListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Identifier`, t`slug`), - new TableColumn(t`Name`, t`name`), - new TableColumn(t`Designation`, t`designation`), + new TableColumn(t`Identifier`, "slug"), + new TableColumn(t`Name`, "name"), + new TableColumn(t`Designation`, "designation"), new TableColumn(t`Stages`), new TableColumn(t`Policies`), new TableColumn(""), diff --git a/web/src/pages/groups/GroupListPage.ts b/web/src/pages/groups/GroupListPage.ts index fc05ccb5e..e41c9d0b1 100644 --- a/web/src/pages/groups/GroupListPage.ts +++ b/web/src/pages/groups/GroupListPage.ts @@ -41,8 +41,8 @@ export class GroupListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), - new TableColumn(t`Parent`, t`parent`), + new TableColumn(t`Name`, "name"), + new TableColumn(t`Parent`, "parent"), new TableColumn(t`Members`), new TableColumn(t`Superuser privileges?`), new TableColumn(""), diff --git a/web/src/pages/outposts/OutpostListPage.ts b/web/src/pages/outposts/OutpostListPage.ts index 71b5ec7e2..cb2529af9 100644 --- a/web/src/pages/outposts/OutpostListPage.ts +++ b/web/src/pages/outposts/OutpostListPage.ts @@ -40,7 +40,7 @@ export class OutpostListPage extends TablePage { } columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), + new TableColumn(t`Name`, "name"), new TableColumn(t`Providers`), new TableColumn(t`Health and Version`), new TableColumn(""), diff --git a/web/src/pages/outposts/ServiceConnectionListPage.ts b/web/src/pages/outposts/ServiceConnectionListPage.ts index 65215d2b7..f7ca2da15 100644 --- a/web/src/pages/outposts/ServiceConnectionListPage.ts +++ b/web/src/pages/outposts/ServiceConnectionListPage.ts @@ -45,9 +45,9 @@ export class OutpostServiceConnectionListPage extends TablePage { columns(): TableColumn[] { return [ new TableColumn(t`Policy / User / Group`), - new TableColumn(t`Enabled`, t`enabled`), - new TableColumn(t`Order`, t`order`), - new TableColumn(t`Timeout`, t`timeout`), + new TableColumn(t`Enabled`, "enabled"), + new TableColumn(t`Order`, "order"), + new TableColumn(t`Timeout`, "timeout"), new TableColumn(""), ]; } diff --git a/web/src/pages/policies/PolicyListPage.ts b/web/src/pages/policies/PolicyListPage.ts index 80bd7d212..69dc15ac0 100644 --- a/web/src/pages/policies/PolicyListPage.ts +++ b/web/src/pages/policies/PolicyListPage.ts @@ -52,7 +52,7 @@ export class PolicyListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), + new TableColumn(t`Name`, "name"), new TableColumn(t`Type`), new TableColumn(""), ]; diff --git a/web/src/pages/property-mappings/PropertyMappingListPage.ts b/web/src/pages/property-mappings/PropertyMappingListPage.ts index ae840db2c..7e9c58de6 100644 --- a/web/src/pages/property-mappings/PropertyMappingListPage.ts +++ b/web/src/pages/property-mappings/PropertyMappingListPage.ts @@ -52,8 +52,8 @@ export class PropertyMappingListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), - new TableColumn(t`Type`, t`type`), + new TableColumn(t`Name`, "name"), + new TableColumn(t`Type`, "type"), new TableColumn(""), ]; } diff --git a/web/src/pages/providers/ProviderListPage.ts b/web/src/pages/providers/ProviderListPage.ts index cfc2654ae..1ba80bc96 100644 --- a/web/src/pages/providers/ProviderListPage.ts +++ b/web/src/pages/providers/ProviderListPage.ts @@ -48,9 +48,9 @@ export class ProviderListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), + new TableColumn(t`Name`, "name"), new TableColumn(t`Application`), - new TableColumn(t`Type`, t`type`), + new TableColumn(t`Type`, "type"), new TableColumn(""), ]; } diff --git a/web/src/pages/sources/SourcesListPage.ts b/web/src/pages/sources/SourcesListPage.ts index 06be4eaeb..85b3baca0 100644 --- a/web/src/pages/sources/SourcesListPage.ts +++ b/web/src/pages/sources/SourcesListPage.ts @@ -47,8 +47,8 @@ export class SourceListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), - new TableColumn(t`Type`, t`verboseName`), + new TableColumn(t`Name`, "name"), + new TableColumn(t`Type`), new TableColumn(""), ]; } diff --git a/web/src/pages/stages/StageListPage.ts b/web/src/pages/stages/StageListPage.ts index 6edde5d07..973bded15 100644 --- a/web/src/pages/stages/StageListPage.ts +++ b/web/src/pages/stages/StageListPage.ts @@ -62,7 +62,7 @@ export class StageListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`name`), + new TableColumn(t`Name`, "name"), new TableColumn(t`Flows`), new TableColumn(""), ]; diff --git a/web/src/pages/stages/invitation/InvitationListPage.ts b/web/src/pages/stages/invitation/InvitationListPage.ts index 90a318bac..c6c30ea31 100644 --- a/web/src/pages/stages/invitation/InvitationListPage.ts +++ b/web/src/pages/stages/invitation/InvitationListPage.ts @@ -42,8 +42,8 @@ export class InvitationListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`ID`, t`pk`), - new TableColumn(t`Created by`, t`created_by`), + new TableColumn(t`ID`, "pk"), + new TableColumn(t`Created by`, "created_by"), new TableColumn(t`Expiry`), new TableColumn(""), ]; diff --git a/web/src/pages/stages/prompt/PromptListPage.ts b/web/src/pages/stages/prompt/PromptListPage.ts index a5b14b7d2..8d7bf6a46 100644 --- a/web/src/pages/stages/prompt/PromptListPage.ts +++ b/web/src/pages/stages/prompt/PromptListPage.ts @@ -42,10 +42,10 @@ export class PromptListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Field`, t`field_key`), - new TableColumn(t`Label`, t`label`), - new TableColumn(t`Type`, t`type`), - new TableColumn(t`Order`, t`order`), + new TableColumn(t`Field`, "field_key"), + new TableColumn(t`Label`, "label"), + new TableColumn(t`Type`, "type"), + new TableColumn(t`Order`, "order"), new TableColumn(t`Stages`), new TableColumn(""), ]; diff --git a/web/src/pages/system-tasks/SystemTaskListPage.ts b/web/src/pages/system-tasks/SystemTaskListPage.ts index 7d161ba4e..b7732ab03 100644 --- a/web/src/pages/system-tasks/SystemTaskListPage.ts +++ b/web/src/pages/system-tasks/SystemTaskListPage.ts @@ -51,7 +51,7 @@ export class SystemTaskListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Identifier`, t`task_name`), + new TableColumn(t`Identifier`, "task_name"), new TableColumn(t`Description`), new TableColumn(t`Last run`), new TableColumn(t`Status`), diff --git a/web/src/pages/tokens/TokenListPage.ts b/web/src/pages/tokens/TokenListPage.ts index a63332b09..b34bc5a52 100644 --- a/web/src/pages/tokens/TokenListPage.ts +++ b/web/src/pages/tokens/TokenListPage.ts @@ -40,10 +40,10 @@ export class TokenListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Identifier`, t`identifier`), - new TableColumn(t`User`, t`user`), - new TableColumn(t`Expires?`, t`expiring`), - new TableColumn(t`Expiry date`, t`expires`), + new TableColumn(t`Identifier`, "identifier"), + new TableColumn(t`User`, "user"), + new TableColumn(t`Expires?`, "expiring"), + new TableColumn(t`Expiry date`, "expires"), new TableColumn(""), ]; } diff --git a/web/src/pages/user-settings/tokens/UserTokenList.ts b/web/src/pages/user-settings/tokens/UserTokenList.ts index 8bb785ee3..efb9d4233 100644 --- a/web/src/pages/user-settings/tokens/UserTokenList.ts +++ b/web/src/pages/user-settings/tokens/UserTokenList.ts @@ -36,7 +36,7 @@ export class UserTokenList extends Table { columns(): TableColumn[] { return [ - new TableColumn(t`Identifier`, t`identifier`), + new TableColumn(t`Identifier`, "identifier"), new TableColumn(""), ]; } diff --git a/web/src/pages/users/UserListPage.ts b/web/src/pages/users/UserListPage.ts index c920fc272..e0928701d 100644 --- a/web/src/pages/users/UserListPage.ts +++ b/web/src/pages/users/UserListPage.ts @@ -45,9 +45,9 @@ export class UserListPage extends TablePage { columns(): TableColumn[] { return [ - new TableColumn(t`Name`, t`username`), - new TableColumn(t`Active`, t`active`), - new TableColumn(t`Last login`, t`last_login`), + new TableColumn(t`Name`, "username"), + new TableColumn(t`Active`, "active"), + new TableColumn(t`Last login`, "last_login"), new TableColumn(""), ]; }