Skip to content

Commit 2ec6baf

Browse files
committed
Added cancel option
Hide return a promise when the dialog closes, and the cancel function does not, i believe the hide() it's implemented on success buttons, and cancel well in cancel buttons
1 parent b359de2 commit 2ec6baf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

angular/services/dialog.service.js

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export class DialogService {
2222
hide() {
2323
return this.$mdDialog.hide();
2424
}
25+
26+
cancel(){
27+
return this.$mdDialog.cancel();
28+
}
2529

2630
alert(title, content) {
2731
let alert = this.$mdDialog.alert()

0 commit comments

Comments
 (0)