X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Frule-management.git;a=blobdiff_plain;f=rulemgt-frontend%2Fsrc%2Fapp%2Fcorrelation-ruleList%2FalarmRule.component.ts;h=05f36ca48736860f3d9b3caebdad62684fa6f646;hp=d3897fe3d6abdfb33c4523627953911baf9382b7;hb=6ebc6d22c0654cbdfde1329d5ea7a2f23df5988d;hpb=1915e1c1948fd4252ad6caab9468ea88d24b869e diff --git a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts index d3897fe..05f36ca 100644 --- a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts +++ b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts @@ -52,8 +52,7 @@ export class AlarmRule implements OnInit { } else if (select == "common_disabled") { this.ruleModel.enabled = 0; } else { - - this.ruleModel.enabled = null; + this.ruleModel.enabled = 2; } this.setActiveText(); } @@ -116,7 +115,7 @@ export class AlarmRule implements OnInit { public reset(): void { this.ruleModel.ruleName = null; this.activeText = 'option_all'; - this.ruleModel.enabled = null; + this.ruleModel.enabled = 2; this.getRules(); } @@ -144,7 +143,7 @@ export class AlarmRule implements OnInit { creator: null, updateTime: null, modifier: null, - enabled: 0, + enabled: 2, loopControlName: '' }; this.ruleRequest = { @@ -152,7 +151,7 @@ export class AlarmRule implements OnInit { ruleName: null, creator: null, modifier: null, - enabled: null, + enabled: 2, loopControlName: '' }; this.getRules();