Commit 35a24032 by Marcus Efraimsson Committed by GitHub

Merge pull request #13208 from grafana/fix-dashboard-permissions

fix: Dashboard permissions now shows correctly
parents 6c90a536 9cfe2a7f
...@@ -131,6 +131,7 @@ export class FolderPickerCtrl { ...@@ -131,6 +131,7 @@ export class FolderPickerCtrl {
private loadInitialValue() { private loadInitialValue() {
const resetFolder = { text: this.initialTitle, value: null }; const resetFolder = { text: this.initialTitle, value: null };
const rootFolder = { text: this.rootName, value: 0 }; const rootFolder = { text: this.rootName, value: 0 };
this.getOptions('').then(result => { this.getOptions('').then(result => {
let folder; let folder;
if (this.initialFolderId) { if (this.initialFolderId) {
...@@ -150,7 +151,7 @@ export class FolderPickerCtrl { ...@@ -150,7 +151,7 @@ export class FolderPickerCtrl {
this.folder = folder; this.folder = folder;
// if this is not the same as our initial value notify parent // if this is not the same as our initial value notify parent
if (this.folder.id !== this.initialFolderId) { if (this.folder.value !== this.initialFolderId) {
this.onChange({ $folder: { id: this.folder.value, title: this.folder.text } }); this.onChange({ $folder: { id: this.folder.value, title: this.folder.text } });
} }
}); });
......
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