ux(keybindings): polish help modal with keybindings, #6465

This commit is contained in:
Torkel Ödegaard
2016-11-04 17:19:03 +01:00
parent 4ab095b051
commit 3cc4a194a9
8 changed files with 129 additions and 72 deletions

View File

@@ -16,6 +16,13 @@ export class UtilSrv {
init() {
appEvents.on('show-modal', this.showModal.bind(this), this.$rootScope);
appEvents.on('hide-modal', this.hideModal.bind(this), this.$rootScope);
}
hideModal() {
if (this.modalScope && this.modalScope.dismiss) {
this.modalScope.dismiss();
}
}
showModal(options) {