mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
folders: fix create folder in folder picker
This commit is contained in:
parent
71c9741764
commit
0135178645
@ -89,13 +89,13 @@ export class FolderPickerCtrl {
|
||||
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']);
|
||||
|
||||
this.closeCreateFolder();
|
||||
this.folder = {
|
||||
text: result.dashboard.title,
|
||||
value: result.dashboard.id,
|
||||
text: result.title,
|
||||
value: result.id,
|
||||
};
|
||||
this.onFolderChange(this.folder);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user