web/admin: fix delete form for tenants missing columns
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
ec84ba9b6d
commit
41d5bff9d3
|
@ -1549,6 +1549,7 @@ msgstr "Docker URL"
|
|||
|
||||
#: src/pages/tenants/TenantForm.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
msgid "Domain"
|
||||
msgstr "Domain"
|
||||
|
||||
|
|
|
@ -1538,6 +1538,7 @@ msgstr "URL Docker"
|
|||
|
||||
#: src/pages/tenants/TenantForm.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
msgid "Domain"
|
||||
msgstr "Domaine"
|
||||
|
||||
|
|
|
@ -1541,6 +1541,7 @@ msgstr ""
|
|||
|
||||
#: src/pages/tenants/TenantForm.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
msgid "Domain"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1521,6 +1521,7 @@ msgstr "Docker URL'si"
|
|||
|
||||
#: src/pages/tenants/TenantForm.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
#: src/pages/tenants/TenantListPage.ts
|
||||
msgid "Domain"
|
||||
msgstr "Alan Adı"
|
||||
|
||||
|
|
|
@ -58,6 +58,9 @@ export class TenantListPage extends TablePage<Tenant> {
|
|||
return html`<ak-forms-delete-bulk
|
||||
objectLabel=${t`Tenant(s)`}
|
||||
.objects=${this.selectedElements}
|
||||
.metadata=${(item: Tenant) => {
|
||||
return [{ key: t`Domain`, value: item.domain }];
|
||||
}}
|
||||
.usedBy=${(item: Tenant) => {
|
||||
return new CoreApi(DEFAULT_CONFIG).coreTenantsUsedByList({
|
||||
tenantUuid: item.tenantUuid,
|
||||
|
@ -78,7 +81,7 @@ export class TenantListPage extends TablePage<Tenant> {
|
|||
row(item: Tenant): TemplateResult[] {
|
||||
return [
|
||||
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`}
|
||||
</ak-label>`,
|
||||
html`<ak-forms-modal>
|
||||
|
|
Reference in New Issue