web/admin: show flow title in list

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-30 22:10:31 +01:00
parent 386944117e
commit 8ab5c04c2c
8 changed files with 27 additions and 10 deletions

View File

@ -253,7 +253,7 @@ export class AdminInterface extends LitElement {
</ak-sidebar-item> </ak-sidebar-item>
</ak-sidebar-item> </ak-sidebar-item>
<ak-sidebar-item> <ak-sidebar-item>
<span slot="label">${t`Flows`}</span> <span slot="label">${t`Flows & Stages`}</span>
<ak-sidebar-item <ak-sidebar-item
path="/flow/flows" path="/flow/flows"
.activeWhen=${[`^/flow/flows/(?<slug>${SLUG_REGEX})$`]} .activeWhen=${[`^/flow/flows/(?<slug>${SLUG_REGEX})$`]}

View File

@ -2070,7 +2070,6 @@ msgstr "Flow used when authorizing this provider."
msgid "Flow(s)" msgid "Flow(s)"
msgstr "Flow(s)" msgstr "Flow(s)"
#: src/interfaces/AdminInterface.ts
#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts
#: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/admin-overview/AdminOverviewPage.ts
#: src/pages/flows/FlowListPage.ts #: src/pages/flows/FlowListPage.ts
@ -2078,6 +2077,10 @@ msgstr "Flow(s)"
msgid "Flows" msgid "Flows"
msgstr "Flows" msgstr "Flows"
#: src/interfaces/AdminInterface.ts
msgid "Flows & Stages"
msgstr "Flows & Stages"
#: src/pages/flows/FlowListPage.ts #: 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." 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." msgstr "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them."

View File

@ -2056,7 +2056,6 @@ msgstr "Flux utilisé lors de l'autorisation de ce fournisseur."
msgid "Flow(s)" msgid "Flow(s)"
msgstr "Flux" msgstr "Flux"
#: src/interfaces/AdminInterface.ts
#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts
#: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/admin-overview/AdminOverviewPage.ts
#: src/pages/flows/FlowListPage.ts #: src/pages/flows/FlowListPage.ts
@ -2064,6 +2063,10 @@ msgstr "Flux"
msgid "Flows" msgid "Flows"
msgstr "Flux" msgstr "Flux"
#: src/interfaces/AdminInterface.ts
msgid "Flows & Stages"
msgstr ""
#: src/pages/flows/FlowListPage.ts #: 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." 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." 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."

View File

@ -2062,7 +2062,6 @@ msgstr ""
msgid "Flow(s)" msgid "Flow(s)"
msgstr "" msgstr ""
#: src/interfaces/AdminInterface.ts
#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts
#: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/admin-overview/AdminOverviewPage.ts
#: src/pages/flows/FlowListPage.ts #: src/pages/flows/FlowListPage.ts
@ -2070,6 +2069,10 @@ msgstr ""
msgid "Flows" msgid "Flows"
msgstr "" msgstr ""
#: src/interfaces/AdminInterface.ts
msgid "Flows & Stages"
msgstr ""
#: src/pages/flows/FlowListPage.ts #: 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." msgid "Flows describe a chain of Stages to authenticate, enroll or recover a user. Stages are chosen based on policies applied to them."
msgstr "" msgstr ""

View File

@ -2033,7 +2033,6 @@ msgstr "Bu sağlayıcıyı yetkilendirirken kullanılan akış."
msgid "Flow(s)" msgid "Flow(s)"
msgstr "Akış (ler)" msgstr "Akış (ler)"
#: src/interfaces/AdminInterface.ts
#: src/interfaces/AdminInterface.ts #: src/interfaces/AdminInterface.ts
#: src/pages/admin-overview/AdminOverviewPage.ts #: src/pages/admin-overview/AdminOverviewPage.ts
#: src/pages/flows/FlowListPage.ts #: src/pages/flows/FlowListPage.ts
@ -2041,6 +2040,10 @@ msgstr "Akış (ler)"
msgid "Flows" msgid "Flows"
msgstr "Akışlar" msgstr "Akışlar"
#: src/interfaces/AdminInterface.ts
msgid "Flows & Stages"
msgstr ""
#: src/pages/flows/FlowListPage.ts #: 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." 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." 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."

View File

@ -91,9 +91,14 @@ export class FlowListPage extends TablePage<Flow> {
row(item: Flow): TemplateResult[] { row(item: Flow): TemplateResult[] {
return [ return [
html`<a href="#/flow/flows/${item.slug}"> html`<div>
<div>
<a href="#/flow/flows/${item.slug}">
<code>${item.slug}</code> <code>${item.slug}</code>
</a>`, </a>
</div>
<small>${item.title}</small>
</div>`,
html`${item.name}`, html`${item.name}`,
html`${Array.from(item.stages || []).length}`, html`${Array.from(item.stages || []).length}`,
html`${Array.from(item.policies || []).length}`, html`${Array.from(item.policies || []).length}`,