|
|
|
@ -1,9 +1,9 @@ |
|
|
|
|
import { IScope } from 'angular'; |
|
|
|
|
import _ from 'lodash'; |
|
|
|
|
import coreModule from 'app/core/core_module'; |
|
|
|
|
import appEvents from 'app/core/app_events'; |
|
|
|
|
import { SearchSrv } from 'app/core/services/search_srv'; |
|
|
|
|
import { BackendSrv } from 'app/core/services/backend_srv'; |
|
|
|
|
import { NavModelSrv } from 'app/core/nav_model_srv'; |
|
|
|
|
import { ContextSrv } from 'app/core/services/context_srv'; |
|
|
|
|
import { CoreEvents } from 'app/types'; |
|
|
|
|
|
|
|
|
@ -70,8 +70,8 @@ export class ManageDashboardsCtrl { |
|
|
|
|
|
|
|
|
|
/** @ngInject */ |
|
|
|
|
constructor( |
|
|
|
|
private $scope: IScope, |
|
|
|
|
private backendSrv: BackendSrv, |
|
|
|
|
navModelSrv: NavModelSrv, |
|
|
|
|
private searchSrv: SearchSrv, |
|
|
|
|
private contextSrv: ContextSrv |
|
|
|
|
) { |
|
|
|
@ -107,6 +107,7 @@ export class ManageDashboardsCtrl { |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
if (!this.folderUid) { |
|
|
|
|
this.$scope.$digest(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -115,6 +116,7 @@ export class ManageDashboardsCtrl { |
|
|
|
|
if (!this.canSave) { |
|
|
|
|
this.hasEditPermissionInFolders = false; |
|
|
|
|
} |
|
|
|
|
this.$scope.$digest(); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|