X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-agent.git;a=blobdiff_plain;f=webapp%2Fsrc%2Fapp%2Fpages%2Fconfirm%2Fconfirm-modal%2Fconfirm-modal.component.ts;h=3de903525724dbe07439a97616ce314861cb986c;hp=d3fec868ab0d75cc5fc1487f2e51f2175cd2e7d5;hb=3009a190cb8984201693a1cf8ecff72f32c7a3b8;hpb=6d14032f41c785bb397509f17764eb29b087ff0f
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;
}
}