From 8ab5c04c2c555f534c79981b6ecb937a08e6e00a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 30 Dec 2021 22:10:31 +0100 Subject: [PATCH] web/admin: show flow title in list Signed-off-by: Jens Langhammer --- web/src/interfaces/AdminInterface.ts | 2 +- web/src/locales/en.po | 5 ++++- web/src/locales/fr_FR.po | 5 ++++- web/src/locales/pseudo-LOCALE.po | 5 ++++- web/src/locales/tr.po | 5 ++++- web/src/pages/flows/FlowListPage.ts | 11 ++++++++--- web/src/pages/policies/PolicyListPage.ts | 2 +- web/src/pages/providers/ProviderListPage.ts | 2 +- 8 files changed, 27 insertions(+), 10 deletions(-) diff --git a/web/src/interfaces/AdminInterface.ts b/web/src/interfaces/AdminInterface.ts index 4f977b44f..cffeacde5 100644 --- a/web/src/interfaces/AdminInterface.ts +++ b/web/src/interfaces/AdminInterface.ts @@ -253,7 +253,7 @@ export class AdminInterface extends LitElement { - ${t`Flows`} + ${t`Flows & Stages`} ${SLUG_REGEX})$`]} diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 35c16fc82..83dfd36d1 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -2070,7 +2070,6 @@ msgstr "Flow used when authorizing this provider." msgid "Flow(s)" msgstr "Flow(s)" -#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts #: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/flows/FlowListPage.ts @@ -2078,6 +2077,10 @@ msgstr "Flow(s)" msgid "Flows" msgstr "Flows" +#: src/interfaces/AdminInterface.ts +msgid "Flows & Stages" +msgstr "Flows & Stages" + #: src/pages/flows/FlowListPage.ts msgid "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them." msgstr "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them." diff --git a/web/src/locales/fr_FR.po b/web/src/locales/fr_FR.po index 3bfbc510c..8477ca28b 100644 --- a/web/src/locales/fr_FR.po +++ b/web/src/locales/fr_FR.po @@ -2056,7 +2056,6 @@ msgstr "Flux utilisé lors de l'autorisation de ce fournisseur." msgid "Flow(s)" msgstr "Flux" -#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts #: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/flows/FlowListPage.ts @@ -2064,6 +2063,10 @@ msgstr "Flux" msgid "Flows" msgstr "Flux" +#: src/interfaces/AdminInterface.ts +msgid "Flows & Stages" +msgstr "" + #: src/pages/flows/FlowListPage.ts msgid "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them." msgstr "Les flux décrivent une succession d'étapes pour authentifier, inscrire ou récupérer un utilisateur. Les étapes sont choisies en fonction des politiques qui leur sont appliquées." diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index 1747c7d0e..29bad33f6 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -2062,7 +2062,6 @@ msgstr "" msgid "Flow(s)" msgstr "" -#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts #: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/flows/FlowListPage.ts @@ -2070,6 +2069,10 @@ msgstr "" msgid "Flows" msgstr "" +#: src/interfaces/AdminInterface.ts +msgid "Flows & Stages" +msgstr "" + #: src/pages/flows/FlowListPage.ts msgid "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them." msgstr "" diff --git a/web/src/locales/tr.po b/web/src/locales/tr.po index 348c9fd1f..7c4ecef38 100644 --- a/web/src/locales/tr.po +++ b/web/src/locales/tr.po @@ -2033,7 +2033,6 @@ msgstr "Bu sağlayıcıyı yetkilendirirken kullanılan akış." msgid "Flow(s)" msgstr "Akış (ler)" -#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts #: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/flows/FlowListPage.ts @@ -2041,6 +2040,10 @@ msgstr "Akış (ler)" msgid "Flows" msgstr "Akışlar" +#: src/interfaces/AdminInterface.ts +msgid "Flows & Stages" +msgstr "" + #: src/pages/flows/FlowListPage.ts msgid "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them." msgstr "Akışlar, bir kullanıcının kimliğini doğrulamak, kaydetmek veya kurtarmak için Aşama zincirini tanımlar. Aşamalar, bunlara uygulanan politikalara göre seçilir." diff --git a/web/src/pages/flows/FlowListPage.ts b/web/src/pages/flows/FlowListPage.ts index f1477f864..0d69c3bc8 100644 --- a/web/src/pages/flows/FlowListPage.ts +++ b/web/src/pages/flows/FlowListPage.ts @@ -91,9 +91,14 @@ export class FlowListPage extends TablePage { row(item: Flow): TemplateResult[] { return [ - html` - ${item.slug} - `, + html`
+ + ${item.title} +
`, html`${item.name}`, html`${Array.from(item.stages || []).length}`, html`${Array.from(item.policies || []).length}`, diff --git a/web/src/pages/policies/PolicyListPage.ts b/web/src/pages/policies/PolicyListPage.ts index e84cfc128..f135b6869 100644 --- a/web/src/pages/policies/PolicyListPage.ts +++ b/web/src/pages/policies/PolicyListPage.ts @@ -75,7 +75,7 @@ export class PolicyListPage extends TablePage {
${item.name}
${(item.boundTo || 0) > 0 ? html` - ${t`Assigned to ${item.boundTo} object(s).`} ` + ${t`Assigned to ${item.boundTo} object(s).`}` : html` ${t`Warning: Policy is not assigned.`}`} `, diff --git a/web/src/pages/providers/ProviderListPage.ts b/web/src/pages/providers/ProviderListPage.ts index af399d100..b6b4ec96b 100644 --- a/web/src/pages/providers/ProviderListPage.ts +++ b/web/src/pages/providers/ProviderListPage.ts @@ -95,7 +95,7 @@ export class ProviderListPage extends TablePage { : html` ${t`Warning: Provider not assigned to any application.`}`, html`${item.verboseName}`, - html` + html` ${t`Update`} ${t`Update ${item.verboseName}`}