Commit b7cf6f97 by Marcus Efraimsson

folders: use folder api for retrieving folder

parent 9d288c3a
......@@ -78,8 +78,8 @@ export class ManageDashboardsCtrl {
return;
}
return this.backendSrv.getDashboardByUid(this.folderUid).then(dash => {
this.canSave = dash.meta.canSave;
return this.backendSrv.getFolderByUid(this.folderUid).then(folder => {
this.canSave = folder.canSave;
});
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment