X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=webapp%2Fsrc%2Fapp%2Fpages%2Fconfirm%2Fconfirm-modal%2Fconfirm-modal.component.ts;h=3de903525724dbe07439a97616ce314861cb986c;hb=refs%2Fchanges%2F33%2F19533%2F2;hp=d3fec868ab0d75cc5fc1487f2e51f2175cd2e7d5;hpb=ee66af78c42c4d7ff33f104415bc09d60dbdc27b;p=src%2Fxds%2Fxds-agent.git
diff --git a/webapp/src/app/pages/confirm/confirm-modal/confirm-modal.component.ts b/webapp/src/app/pages/confirm/confirm-modal/confirm-modal.component.ts
index d3fec86..3de9035 100644
--- a/webapp/src/app/pages/confirm/confirm-modal/confirm-modal.component.ts
+++ b/webapp/src/app/pages/confirm/confirm-modal/confirm-modal.component.ts
@@ -39,12 +39,19 @@ export enum EType {
-
-
-
+
+
+
@@ -64,29 +71,30 @@ export class ConfirmModalComponent implements OnInit {
@Input() question;
bodyQuestion = '';
- textBtn: Array = ['', '', ''];
+ textBtn: Array = ['', ''];
constructor(
private modalRef: NgbActiveModal,
) { }
+
ngOnInit() {
switch (this.type) {
case EType.OK:
- this.textBtn = [ 'OK', '', '' ];
+ this.textBtn = [ 'OK', '' ];
break;
case EType.Cancel:
- this.textBtn = [ '', 'Cancel', '' ];
+ this.textBtn = [ '', 'Cancel' ];
break;
case EType.OKCancel:
- this.textBtn = [ 'OK', 'Cancel', '' ];
+ this.textBtn = [ 'OK', 'Cancel' ];
break;
default:
case EType.YesNo:
- this.textBtn = [ 'Yes', 'No', '' ];
+ this.textBtn = [ 'Yes', 'No' ];
break;
}
}