mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 08:16:59 -06:00
fix: folder redirect after creation
This commit is contained in:
parent
db1423eebc
commit
39238c192d
@ -1,4 +1,5 @@
|
|||||||
import appEvents from 'app/core/app_events';
|
import appEvents from 'app/core/app_events';
|
||||||
|
import locationUtil from 'app/core/utils/location_util';
|
||||||
|
|
||||||
export class CreateFolderCtrl {
|
export class CreateFolderCtrl {
|
||||||
title = '';
|
title = '';
|
||||||
@ -19,7 +20,7 @@ export class CreateFolderCtrl {
|
|||||||
|
|
||||||
return this.backendSrv.createDashboardFolder(this.title).then(result => {
|
return this.backendSrv.createDashboardFolder(this.title).then(result => {
|
||||||
appEvents.emit('alert-success', ['Folder Created', 'OK']);
|
appEvents.emit('alert-success', ['Folder Created', 'OK']);
|
||||||
this.$location.url(result.meta.url);
|
this.$location.url(locationUtil.stripBaseFromUrl(result.meta.url));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user