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

fix: Dashboard permissions now shows correctly
This commit is contained in:
Marcus Efraimsson 2018-09-10 14:00:55 +02:00 committed by GitHub
commit 35a24032a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,7 @@ export class FolderPickerCtrl {
private loadInitialValue() {
const resetFolder = { text: this.initialTitle, value: null };
const rootFolder = { text: this.rootName, value: 0 };
this.getOptions('').then(result => {
let folder;
if (this.initialFolderId) {
@ -150,7 +151,7 @@ export class FolderPickerCtrl {
this.folder = folder;
// 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 } });
}
});