Commit 01351786 by Marcus Efraimsson

folders: fix create folder in folder picker

parent 71c97417
...@@ -89,13 +89,13 @@ export class FolderPickerCtrl { ...@@ -89,13 +89,13 @@ export class FolderPickerCtrl {
evt.preventDefault(); evt.preventDefault();
} }
return this.backendSrv.createDashboardFolder(this.newFolderName).then(result => { return this.backendSrv.createFolder({ title: this.newFolderName }).then(result => {
appEvents.emit('alert-success', ['Folder Created', 'OK']); appEvents.emit('alert-success', ['Folder Created', 'OK']);
this.closeCreateFolder(); this.closeCreateFolder();
this.folder = { this.folder = {
text: result.dashboard.title, text: result.title,
value: result.dashboard.id, value: result.id,
}; };
this.onFolderChange(this.folder); this.onFolderChange(this.folder);
}); });
......
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