web/admin: fix undefined being shown when viewing application

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-18 18:57:56 +02:00
parent 828fe07fca
commit dd2cd09637
4 changed files with 6 additions and 4 deletions

View file

@ -1680,6 +1680,7 @@ msgstr "Library"
#: src/flows/stages/identification/IdentificationStage.ts:134
#: src/flows/stages/password/PasswordStage.ts:31
#: src/flows/stages/prompt/PromptStage.ts:126
#: src/pages/applications/ApplicationViewPage.ts:43
#: src/pages/applications/ApplicationViewPage.ts:54
#: src/pages/user-settings/UserDetailsPage.ts:38
#: src/utils.ts:40
@ -2394,7 +2395,6 @@ msgstr "Provide support for protocols like SAML and OAuth to assigned applicatio
#: src/pages/applications/ApplicationForm.ts:100
#: src/pages/applications/ApplicationListPage.ts:59
#: src/pages/applications/ApplicationViewPage.ts:68
#: src/pages/providers/ProviderListPage.ts:34
msgid "Provider"
msgstr "Provider"
@ -2411,6 +2411,7 @@ msgstr "Provider type"
#: src/pages/admin-overview/AdminOverviewPage.ts:46
#: src/pages/outposts/OutpostForm.ts:82
#: src/pages/outposts/OutpostListPage.ts:51
#: src/pages/providers/ProviderListPage.ts:34
msgid "Providers"
msgstr "Providers"

View file

@ -1672,6 +1672,7 @@ msgstr ""
#: src/flows/stages/identification/IdentificationStage.ts:134
#: src/flows/stages/password/PasswordStage.ts:31
#: src/flows/stages/prompt/PromptStage.ts:126
#: src/pages/applications/ApplicationViewPage.ts:43
#: src/pages/applications/ApplicationViewPage.ts:54
#: src/pages/user-settings/UserDetailsPage.ts:38
#: src/utils.ts:40
@ -2386,7 +2387,6 @@ msgstr ""
#: src/pages/applications/ApplicationForm.ts:100
#: src/pages/applications/ApplicationListPage.ts:59
#: src/pages/applications/ApplicationViewPage.ts:68
#: src/pages/providers/ProviderListPage.ts:34
msgid "Provider"
msgstr ""
@ -2403,6 +2403,7 @@ msgstr ""
#: src/pages/admin-overview/AdminOverviewPage.ts:46
#: src/pages/outposts/OutpostForm.ts:82
#: src/pages/outposts/OutpostListPage.ts:51
#: src/pages/providers/ProviderListPage.ts:34
msgid "Providers"
msgstr ""

View file

@ -43,7 +43,7 @@ export class ApplicationViewPage extends LitElement {
render(): TemplateResult {
return html`<ak-page-header
icon=${this.application?.metaIcon || ""}
header=${this.application?.name}
header=${this.application?.name || t`Loading`}
description=${ifDefined(this.application?.metaPublisher)}
.iconImage=${true}>
</ak-page-header>

View file

@ -25,7 +25,7 @@ export class ProviderListPage extends TablePage<Provider> {
return true;
}
pageTitle(): string {
return t`Provider`;
return t`Providers`;
}
pageDescription(): string {
return t`Provide support for protocols like SAML and OAuth to assigned applications.`;