mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux: dashboard settings progress
This commit is contained in:
@@ -62,3 +62,7 @@
|
||||
|
||||
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'templating'" ng-include="'public/app/features/templating/partials/editor.html'">
|
||||
</div>
|
||||
|
||||
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'links'" >
|
||||
<dash-links-editor></dash-links-editor>
|
||||
</div>
|
||||
|
||||
@@ -21,8 +21,9 @@ export class SettingsCtrl {
|
||||
|
||||
/** @ngInject */
|
||||
constructor(private $scope, private $location, private $rootScope) {
|
||||
// temp hack
|
||||
this.$scope.dashboard = this.dashboard;
|
||||
// temp hack for annotations and variables editors
|
||||
// that rely on inherited scope
|
||||
$scope.dashboard = this.dashboard;
|
||||
|
||||
const params = this.$location.search();
|
||||
const url = $location.path();
|
||||
@@ -56,6 +57,12 @@ export class SettingsCtrl {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
onFolderChange(folder) {
|
||||
this.dashboard.folderId = folder.id;
|
||||
this.dashboard.meta.folderId = folder.id;
|
||||
this.dashboard.meta.folderTitle= folder.title;
|
||||
}
|
||||
}
|
||||
|
||||
export function dashboardSettings() {
|
||||
|
||||
Reference in New Issue
Block a user