mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Moving files to better locations
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
<page-header model="ctrl.navModel"></page-header>
|
|
||||||
|
|
||||||
<div class="page-container page-body">
|
|
||||||
<dashboard-permissions ng-if="ctrl.dashboard && ctrl.meta"
|
|
||||||
dashboardId="ctrl.dashboard.id"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<page-header model="ctrl.navModel"></page-header>
|
|
||||||
|
|
||||||
<div class="page-container page-body">
|
|
||||||
<h2 class="page-sub-heading">Folder Settings</h2>
|
|
||||||
|
|
||||||
<div class="section gf-form-group">
|
|
||||||
<form name="folderSettingsForm" ng-submit="ctrl.save()">
|
|
||||||
<div class="gf-form">
|
|
||||||
<label class="gf-form-label width-7">Name</label>
|
|
||||||
<input type="text" class="gf-form-input width-30" ng-model='ctrl.title' ng-change="ctrl.titleChanged()"></input>
|
|
||||||
</div>
|
|
||||||
<div class="gf-form-button-row">
|
|
||||||
<button type="submit" class="btn btn-success" ng-disabled="!ctrl.canSave || !ctrl.hasChanged">
|
|
||||||
<i class="fa fa-save"></i>Save
|
|
||||||
</button>
|
|
||||||
<button class="btn btn-danger" ng-click="ctrl.delete($event)" ng-disabled="!ctrl.canSave">
|
|
||||||
<i class="fa fa-trash"></i>
|
|
||||||
Delete
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import appEvents from 'app/core/app_events';
|
import appEvents from 'app/core/app_events';
|
||||||
import locationUtil from 'app/core/utils/location_util';
|
import locationUtil from 'app/core/utils/location_util';
|
||||||
|
|
||||||
export class CreateFolderCtrl {
|
export default class CreateFolderCtrl {
|
||||||
title = '';
|
title = '';
|
||||||
navModel: any;
|
navModel: any;
|
||||||
titleTouched = false;
|
titleTouched = false;
|
||||||
@@ -38,3 +38,4 @@ export class CreateFolderCtrl {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { FolderPageLoader } from './services/FolderPageLoader';
|
import { FolderPageLoader } from './services/FolderPageLoader';
|
||||||
import locationUtil from 'app/core/utils/location_util';
|
import locationUtil from 'app/core/utils/location_util';
|
||||||
|
|
||||||
export class FolderDashboardsCtrl {
|
export default class FolderDashboardsCtrl {
|
||||||
navModel: any;
|
navModel: any;
|
||||||
folderId: number;
|
folderId: number;
|
||||||
uid: string;
|
uid: string;
|
||||||
@@ -23,3 +23,4 @@ export class FolderDashboardsCtrl {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8,14 +8,10 @@ export * from './components/UploadDashboard';
|
|||||||
// Controllers
|
// Controllers
|
||||||
import { DashboardListCtrl } from './DashboardListCtrl';
|
import { DashboardListCtrl } from './DashboardListCtrl';
|
||||||
import { SnapshotListCtrl } from './SnapshotListCtrl';
|
import { SnapshotListCtrl } from './SnapshotListCtrl';
|
||||||
import { FolderDashboardsCtrl } from './FolderDashboardsCtrl';
|
|
||||||
import { DashboardImportCtrl } from './DashboardImportCtrl';
|
import { DashboardImportCtrl } from './DashboardImportCtrl';
|
||||||
import { CreateFolderCtrl } from './CreateFolderCtrl';
|
|
||||||
|
|
||||||
import coreModule from 'app/core/core_module';
|
import coreModule from 'app/core/core_module';
|
||||||
|
|
||||||
coreModule.controller('DashboardListCtrl', DashboardListCtrl);
|
coreModule.controller('DashboardListCtrl', DashboardListCtrl);
|
||||||
coreModule.controller('SnapshotListCtrl', SnapshotListCtrl);
|
coreModule.controller('SnapshotListCtrl', SnapshotListCtrl);
|
||||||
coreModule.controller('FolderDashboardsCtrl', FolderDashboardsCtrl);
|
|
||||||
coreModule.controller('DashboardImportCtrl', DashboardImportCtrl);
|
coreModule.controller('DashboardImportCtrl', DashboardImportCtrl);
|
||||||
coreModule.controller('CreateFolderCtrl', CreateFolderCtrl);
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import ApiKeys from 'app/features/api-keys/ApiKeysPage';
|
|||||||
import PluginListPage from 'app/features/plugins/PluginListPage';
|
import PluginListPage from 'app/features/plugins/PluginListPage';
|
||||||
import FolderSettingsPage from 'app/features/folders/FolderSettingsPage';
|
import FolderSettingsPage from 'app/features/folders/FolderSettingsPage';
|
||||||
import FolderPermissions from 'app/features/folders/FolderPermissions';
|
import FolderPermissions from 'app/features/folders/FolderPermissions';
|
||||||
|
import CreateFolderCtrl from 'app/features/folders/CreateFolderCtrl';
|
||||||
|
import FolderDashboardsCtrl from 'app/features/folders/FolderDashboardsCtrl';
|
||||||
import DataSourcesListPage from 'app/features/datasources/DataSourcesListPage';
|
import DataSourcesListPage from 'app/features/datasources/DataSourcesListPage';
|
||||||
import NewDataSourcePage from '../features/datasources/NewDataSourcePage';
|
import NewDataSourcePage from '../features/datasources/NewDataSourcePage';
|
||||||
import UsersListPage from 'app/features/users/UsersListPage';
|
import UsersListPage from 'app/features/users/UsersListPage';
|
||||||
@@ -100,8 +102,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
|
|||||||
controllerAs: 'ctrl',
|
controllerAs: 'ctrl',
|
||||||
})
|
})
|
||||||
.when('/dashboards/folder/new', {
|
.when('/dashboards/folder/new', {
|
||||||
templateUrl: 'public/app/features/dashboard/partials/create_folder.html',
|
templateUrl: 'public/app/features/folders/partials/create_folder.html',
|
||||||
controller: 'CreateFolderCtrl',
|
controller: CreateFolderCtrl,
|
||||||
controllerAs: 'ctrl',
|
controllerAs: 'ctrl',
|
||||||
})
|
})
|
||||||
.when('/dashboards/f/:uid/:slug/permissions', {
|
.when('/dashboards/f/:uid/:slug/permissions', {
|
||||||
@@ -117,8 +119,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.when('/dashboards/f/:uid/:slug', {
|
.when('/dashboards/f/:uid/:slug', {
|
||||||
templateUrl: 'public/app/features/dashboard/partials/folder_dashboards.html',
|
templateUrl: 'public/app/features/folders/partials/folder_dashboards.html',
|
||||||
controller: 'FolderDashboardsCtrl',
|
controller: FolderDashboardsCtrl,
|
||||||
controllerAs: 'ctrl',
|
controllerAs: 'ctrl',
|
||||||
})
|
})
|
||||||
.when('/dashboards/f/:uid', {
|
.when('/dashboards/f/:uid', {
|
||||||
|
|||||||
Reference in New Issue
Block a user