Browse Source

Merge pull request #4747 from ViacheslavKlimov/fix/tenant-profile-configuration-ui

Fix DefaultTenantProfileConfiguration model
pull/4772/head
Igor Kulikov 5 years ago
committed by GitHub
parent
commit
0947cd5f18
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      ui-ngx/src/app/shared/models/tenant.model.ts

6
ui-ngx/src/app/shared/models/tenant.model.ts

@ -49,8 +49,10 @@ export interface DefaultTenantProfileConfiguration {
maxRuleNodeExecutionsPerMessage: number;
maxEmails: number;
maxSms: number;
maxCreatedAlarms: number;
defaultStorageTtlDays: number;
alarmsTtlDays: number;
}
export type TenantProfileConfigurations = DefaultTenantProfileConfiguration;
@ -81,7 +83,9 @@ export function createTenantProfileConfiguration(type: TenantProfileType): Tenan
maxRuleNodeExecutionsPerMessage: 0,
maxEmails: 0,
maxSms: 0,
defaultStorageTtlDays: 0
maxCreatedAlarms: 0,
defaultStorageTtlDays: 0,
alarmsTtlDays: 0
};
configuration = {...defaultConfiguration, type: TenantProfileType.DEFAULT};
break;

Loading…
Cancel
Save