|
|
@@ -7,7 +7,7 @@ import angular from 'angular';
|
|
|
export class DashNavCtrl {
|
|
|
|
|
|
/** @ngInject */
|
|
|
- constructor($scope, $rootScope, alertSrv, $location, playlistSrv, backendSrv, contextSrv, $timeout) {
|
|
|
+ constructor($scope, $rootScope, alertSrv, $location, playlistSrv, backendSrv, $timeout) {
|
|
|
|
|
|
$scope.init = function() {
|
|
|
$scope.onAppEvent('save-dashboard', $scope.saveDashboard);
|
|
|
@@ -103,13 +103,6 @@ export class DashNavCtrl {
|
|
|
}, $scope.handleSaveDashError);
|
|
|
};
|
|
|
|
|
|
- $scope.saveDashboardAsHome = function() {
|
|
|
- // TODO: this backend method needs to be implemented
|
|
|
- backendSrv.post('/api/preferences/set-home-dash', {
|
|
|
- homeDashboardId: $scope.dashboard.id
|
|
|
- });
|
|
|
- };
|
|
|
-
|
|
|
$scope.handleSaveDashError = function(err) {
|
|
|
if (err.data && err.data.status === "version-mismatch") {
|
|
|
err.isHandled = true;
|