Commit 6e6ebc59 by Torkel Ödegaard

trying to fix karma issue

parent b30b78e4
...@@ -9,7 +9,6 @@ module.exports = function(config) { ...@@ -9,7 +9,6 @@ module.exports = function(config) {
// list of files / patterns to load in the browser // list of files / patterns to load in the browser
files: [ files: [
'vendor/npm/es6-shim/es6-shim.js', 'vendor/npm/es6-shim/es6-shim.js',
'vendor/npm/es6-promise/dist/es6-promise.js',
'vendor/npm/systemjs/dist/system.src.js', 'vendor/npm/systemjs/dist/system.src.js',
'test/test-main.js', 'test/test-main.js',
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"grunt-contrib-watch": "^0.6.1", "grunt-contrib-watch": "^0.6.1",
"grunt-filerev": "^0.2.1", "grunt-filerev": "^0.2.1",
"grunt-git-describe": "~2.3.2", "grunt-git-describe": "~2.3.2",
"grunt-karma": "~0.12.1", "grunt-karma": "~0.12.2",
"grunt-ng-annotate": "^1.0.1", "grunt-ng-annotate": "^1.0.1",
"grunt-notify": "^0.4.3", "grunt-notify": "^0.4.3",
"grunt-postcss": "^0.8.0", "grunt-postcss": "^0.8.0",
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
"grunt-typescript": "^0.8.0", "grunt-typescript": "^0.8.0",
"grunt-usemin": "3.0.0", "grunt-usemin": "3.0.0",
"jshint-stylish": "~2.1.0", "jshint-stylish": "~2.1.0",
"karma": "~0.13.15", "karma": "0.13.22",
"karma-chrome-launcher": "~0.2.2", "karma-chrome-launcher": "~0.2.2",
"karma-coverage": "0.5.3", "karma-coverage": "0.5.3",
"karma-coveralls": "1.1.2", "karma-coveralls": "1.1.2",
......
...@@ -7,7 +7,7 @@ import angular from 'angular'; ...@@ -7,7 +7,7 @@ import angular from 'angular';
export class DashNavCtrl { export class DashNavCtrl {
/** @ngInject */ /** @ngInject */
constructor($scope, $rootScope, alertSrv, $location, playlistSrv, backendSrv, contextSrv, $timeout) { constructor($scope, $rootScope, alertSrv, $location, playlistSrv, backendSrv, $timeout) {
$scope.init = function() { $scope.init = function() {
$scope.onAppEvent('save-dashboard', $scope.saveDashboard); $scope.onAppEvent('save-dashboard', $scope.saveDashboard);
...@@ -103,13 +103,6 @@ export class DashNavCtrl { ...@@ -103,13 +103,6 @@ export class DashNavCtrl {
}, $scope.handleSaveDashError); }, $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) { $scope.handleSaveDashError = function(err) {
if (err.data && err.data.status === "version-mismatch") { if (err.data && err.data.status === "version-mismatch") {
err.isHandled = true; err.isHandled = true;
......
...@@ -13,6 +13,6 @@ ...@@ -13,6 +13,6 @@
"commit": "5a07c5107b4d24f41744a02b07717d55bad88e70" "commit": "5a07c5107b4d24f41744a02b07717d55bad88e70"
}, },
"_source": "git://github.com/angular/bower-angular.git", "_source": "git://github.com/angular/bower-angular.git",
"_target": "1.5.3", "_target": "~1.5.3",
"_originalSource": "angular" "_originalSource": "angular"
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment