/**
* @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");
*/
import { Component, OnInit, Input } from '@angular/core';
-import { DomSanitizer } from '@angular/platform-browser';
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
export enum EType {
YesNo = 1,
OKCancel,
OK,
+ Cancel,
}
@Component({
constructor(
private modalRef: NgbActiveModal,
- private sanitizer: DomSanitizer,
) { }
ngOnInit() {
this.textBtn = [ 'OK', '', '' ];
break;
+ case EType.Cancel:
+ this.textBtn = [ '', 'Cancel', '' ];
+ break;
+
case EType.OKCancel:
this.textBtn = [ 'OK', 'Cancel', '' ];
break;