web/admin: fix delete form for tenants missing columns

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-01-04 18:49:26 +01:00
parent ec84ba9b6d
commit 41d5bff9d3
5 changed files with 8 additions and 1 deletions

View File

@ -1549,6 +1549,7 @@ msgstr "Docker URL"
#: src/pages/tenants/TenantForm.ts #: src/pages/tenants/TenantForm.ts
#: src/pages/tenants/TenantListPage.ts #: src/pages/tenants/TenantListPage.ts
#: src/pages/tenants/TenantListPage.ts
msgid "Domain" msgid "Domain"
msgstr "Domain" msgstr "Domain"

View File

@ -1538,6 +1538,7 @@ msgstr "URL Docker"
#: src/pages/tenants/TenantForm.ts #: src/pages/tenants/TenantForm.ts
#: src/pages/tenants/TenantListPage.ts #: src/pages/tenants/TenantListPage.ts
#: src/pages/tenants/TenantListPage.ts
msgid "Domain" msgid "Domain"
msgstr "Domaine" msgstr "Domaine"

View File

@ -1541,6 +1541,7 @@ msgstr ""
#: src/pages/tenants/TenantForm.ts #: src/pages/tenants/TenantForm.ts
#: src/pages/tenants/TenantListPage.ts #: src/pages/tenants/TenantListPage.ts
#: src/pages/tenants/TenantListPage.ts
msgid "Domain" msgid "Domain"
msgstr "" msgstr ""

View File

@ -1521,6 +1521,7 @@ msgstr "Docker URL'si"
#: src/pages/tenants/TenantForm.ts #: src/pages/tenants/TenantForm.ts
#: src/pages/tenants/TenantListPage.ts #: src/pages/tenants/TenantListPage.ts
#: src/pages/tenants/TenantListPage.ts
msgid "Domain" msgid "Domain"
msgstr "Alan Adı" msgstr "Alan Adı"

View File

@ -58,6 +58,9 @@ export class TenantListPage extends TablePage<Tenant> {
return html`<ak-forms-delete-bulk return html`<ak-forms-delete-bulk
objectLabel=${t`Tenant(s)`} objectLabel=${t`Tenant(s)`}
.objects=${this.selectedElements} .objects=${this.selectedElements}
.metadata=${(item: Tenant) => {
return [{ key: t`Domain`, value: item.domain }];
}}
.usedBy=${(item: Tenant) => { .usedBy=${(item: Tenant) => {
return new CoreApi(DEFAULT_CONFIG).coreTenantsUsedByList({ return new CoreApi(DEFAULT_CONFIG).coreTenantsUsedByList({
tenantUuid: item.tenantUuid, tenantUuid: item.tenantUuid,
@ -78,7 +81,7 @@ export class TenantListPage extends TablePage<Tenant> {
row(item: Tenant): TemplateResult[] { row(item: Tenant): TemplateResult[] {
return [ return [
html`${item.domain}`, html`${item.domain}`,
html` <ak-label color=${item._default ? PFColor.Green : PFColor.Red}> html`<ak-label color=${item._default ? PFColor.Green : PFColor.Red}>
${item._default ? t`Yes` : t`No`} ${item._default ? t`Yes` : t`No`}
</ak-label>`, </ak-label>`,
html`<ak-forms-modal> html`<ak-forms-modal>