mirror of https://github.com/rancher/ui.git
implement cancel modal for yaml form switching
This commit is contained in:
parent
2a7d9db595
commit
f1d99121d0
|
|
@ -12,6 +12,9 @@ export default Component.extend(ModalBase, {
|
||||||
confirm() {
|
confirm() {
|
||||||
this.modalService.modalOpts.finish(this.close.bind(this));
|
this.modalService.modalOpts.finish(this.close.bind(this));
|
||||||
},
|
},
|
||||||
|
cancel() {
|
||||||
|
this.modalService.modalOpts.finish(this.close.bind(this), true);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue