Various dashboard folders improvements (#10309)

* dashfolders: fix url for create dashboard from manage dashboards

Don't include folderId querystring if you don't manage a folder and
creating a new dashboard from there.

* dashfolders: don't store folderId in dashboard model

Use folderId from meta instead
#10307

* dashfolders: minor ux fix

* dashfolders: minor fix for edit folder title
This commit is contained in:
Marcus Efraimsson
2017-12-20 21:17:55 +01:00
committed by Torkel Ödegaard
parent 61b4e5ab2d
commit d41ce4f9ca
10 changed files with 49 additions and 19 deletions

View File

@@ -31,7 +31,6 @@ export class DashboardModel {
revision: number;
links: any;
gnetId: any;
folderId: number;
panels: PanelModel[];
// ------------------
@@ -76,7 +75,6 @@ export class DashboardModel {
this.version = data.version || 0;
this.links = data.links || [];
this.gnetId = data.gnetId || null;
this.folderId = data.folderId || null;
this.panels = _.map(
data.panels || [],
panelData => new PanelModel(panelData)