dashfolders: New Dashboard Folder page

Fixes #10083. Permissions page is just a placeholder
for now.
This commit is contained in:
Marcus Efraimsson
2017-12-07 17:29:13 +01:00
parent 10b0fc79f3
commit 2ea663df78
18 changed files with 447 additions and 342 deletions

View File

@@ -0,0 +1,16 @@
import {FolderPageLoader} from './folder_page_loader';
export class FolderDashboardsCtrl {
navModel: any;
folderId: number;
/** @ngInject */
constructor(private backendSrv, navModelSrv, private $routeParams) {
if (this.$routeParams.folderId && this.$routeParams.type && this.$routeParams.slug) {
this.folderId = $routeParams.folderId;
this.navModel = navModelSrv.getNav('manage-folder', 'manage-folder-dashboards', 0);
new FolderPageLoader(this.backendSrv, this.$routeParams).load(this.navModel, this.folderId);
}
}
}