ux(dashboard): lots of tweaks and polish to row menu, added remove X to add panel and row option views, #6442

This commit is contained in:
Torkel Ödegaard
2016-11-04 11:43:44 +01:00
parent 616e9ce5f6
commit 2fa7100c3b
13 changed files with 216 additions and 139 deletions

View File

@@ -23,20 +23,22 @@ export class UtilSrv {
this.modalScope.dismiss();
}
if (options.model || !options.scope) {
options.scope = this.modalScope = this.$rootScope.$new();
options.scope.model = options.model;
}
this.modalScope = options.scope;
if (options.model) {
this.modalScope = this.$rootScope.$new();
this.modalScope.model = options.model;
} else if (!this.modalScope) {
this.modalScope = this.$rootScope.$new();
}
var modal = this.$modal({
modalClass: options.modalClass,
template: options.src,
templateHtml: options.templateHtml,
persist: false,
show: false,
scope: options.scope,
scope: this.modalScope,
keyboard: false,
backdrop: options.backdrop
});