Migration to AGL gerrit (update go import)
[src/xds/xds-agent.git] / webapp / src / app / pages / confirm / confirm-modal / confirm-modal.component.ts
index 3282d6b..67a7d87 100644 (file)
@@ -1,6 +1,6 @@
 /**
 * @license
-* Copyright (C) 2017 "IoT.bzh"
+* Copyright (C) 2017-2018 "IoT.bzh"
 * Author Sebastien Douheret <sebastien@iot.bzh>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,6 +24,7 @@ export enum EType {
   YesNo = 1,
   OKCancel,
   OK,
+  Cancel,
 }
 
 @Component({
@@ -77,6 +78,10 @@ export class ConfirmModalComponent implements OnInit {
         this.textBtn = [ 'OK', '', '' ];
         break;
 
+      case EType.Cancel:
+        this.textBtn = [ '', 'Cancel', '' ];
+      break;
+
       case EType.OKCancel:
         this.textBtn = [ 'OK', 'Cancel', '' ];
       break;