Moved dashboard settings to components

This commit is contained in:
Torkel Ödegaard 2019-01-23 11:48:27 +01:00
parent dfe9252f54
commit 08f7e55ae5
4 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { coreModule, appEvents, contextSrv } from 'app/core/core';
import { DashboardModel } from '../dashboard_model';
import { DashboardModel } from '../../dashboard_model';
import $ from 'jquery';
import _ from 'lodash';
import angular from 'angular';
@ -230,7 +230,7 @@ export class SettingsCtrl {
export function dashboardSettings() {
return {
restrict: 'E',
templateUrl: 'public/app/features/dashboard/settings/settings.html',
templateUrl: 'public/app/features/dashboard/components/DashboardSettings/template.html',
controller: SettingsCtrl,
bindToController: true,
controllerAs: 'ctrl',

View File

@ -0,0 +1 @@
export { SettingsCtrl } from './SettingsCtrl';

View File

@ -19,7 +19,6 @@ import './ad_hoc_filters';
import './repeat_option/repeat_option';
import './dashgrid/DashboardGridDirective';
import './dashgrid/RowOptions';
import './settings/settings';
import './panellinks/module';
import './components/DashLinks';
import './components/DashExportModal';
@ -27,6 +26,7 @@ import './components/DashNav';
import './components/ExportDataModal';
import './components/FolderPicker';
import './components/VersionHistory';
import './components/DashboardSettings';
import DashboardPermissions from './components/DashboardPermissions/DashboardPermissions';
// angular wrappers