Moved submenu into components dir

This commit is contained in:
Torkel Ödegaard 2019-01-23 11:51:43 +01:00
parent 08f7e55ae5
commit 2356057f20
4 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import angular from 'angular';
import _ from 'lodash';
export class SubmenuCtrl {
export class SubMenuCtrl {
annotations: any;
variables: any;
dashboard: any;
@ -29,8 +29,8 @@ export class SubmenuCtrl {
export function submenuDirective() {
return {
restrict: 'E',
templateUrl: 'public/app/features/dashboard/submenu/submenu.html',
controller: SubmenuCtrl,
templateUrl: 'public/app/features/dashboard/components/SubMenu/template.html',
controller: SubMenuCtrl,
bindToController: true,
controllerAs: 'ctrl',
scope: {

View File

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

View File

@ -1,7 +1,6 @@
import './dashboard_ctrl';
import './alerting_srv';
import './dashboard_loader_srv';
import './submenu/submenu';
import './save_as_modal';
import './save_modal';
import './save_provisioned_modal';
@ -27,6 +26,7 @@ import './components/ExportDataModal';
import './components/FolderPicker';
import './components/VersionHistory';
import './components/DashboardSettings';
import './components/SubMenu';
import DashboardPermissions from './components/DashboardPermissions/DashboardPermissions';
// angular wrappers