mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user