,
protected fb: FormBuilder) {
super(store, fb, entityValue, entitiesTableConfigValue);
}
diff --git a/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.html b/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.html
index 1b37efd149..dd603d4a91 100644
--- a/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.html
+++ b/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.html
@@ -52,7 +52,8 @@
+ formControlName="tenantProfileId"
+ (tenantProfileUpdated)="onTenantProfileUpdated()">
diff --git a/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts b/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts
index 566086939b..f139deb1b5 100644
--- a/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts
+++ b/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts
@@ -88,4 +88,7 @@ export class TenantComponent extends ContactBasedComponent {
}));
}
+ onTenantProfileUpdated() {
+ this.entitiesTableConfig.table.updateData(false);
+ }
}
diff --git a/ui-ngx/src/app/shared/models/tenant.model.ts b/ui-ngx/src/app/shared/models/tenant.model.ts
index a0602515d3..378dca7c25 100644
--- a/ui-ngx/src/app/shared/models/tenant.model.ts
+++ b/ui-ngx/src/app/shared/models/tenant.model.ts
@@ -25,11 +25,11 @@ export interface TenantProfileData {
export interface TenantProfile extends BaseData {
name: string;
- description: string;
- default: boolean;
- isolatedTbCore: boolean;
- isolatedTbRuleEngine: boolean;
- profileData: TenantProfileData;
+ description?: string;
+ default?: boolean;
+ isolatedTbCore?: boolean;
+ isolatedTbRuleEngine?: boolean;
+ profileData?: TenantProfileData;
}
export interface Tenant extends ContactBased {
diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json
index 746356452c..ff3531517b 100644
--- a/ui-ngx/src/assets/locale/locale.constant-en_US.json
+++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json
@@ -1680,6 +1680,7 @@
"tenant-profile": "Tenant profile",
"tenant-profiles": "Tenant profiles",
"add": "Add tenant profile",
+ "edit": "Edit tenant profile",
"tenant-profile-details": "Tenant profile details",
"no-tenant-profiles-text": "No tenant profiles found",
"search": "Search tenant profiles",
@@ -1699,7 +1700,9 @@
"delete-tenant-profiles-title": "Are you sure you want to delete { count, plural, 1 {1 tenant profile} other {# tenant profiles} }?",
"delete-tenant-profiles-text": "Be careful, after the confirmation all selected tenant profiles will be removed and all related data will become unrecoverable.",
"set-default-tenant-profile-title": "Are you sure you want to make the tenant profile '{{tenantProfileName}}' root?",
- "set-default-tenant-profile-text": "After the confirmation the tenant profile will be marked as default and will be used for new tenants with no profile specified."
+ "set-default-tenant-profile-text": "After the confirmation the tenant profile will be marked as default and will be used for new tenants with no profile specified.",
+ "no-tenant-profiles-found": "No tenant profiles found.",
+ "create-new-tenant-profile": "Create a new one!"
},
"timeinterval": {
"seconds-interval": "{ seconds, plural, 1 {1 second} other {# seconds} }",