From 9915eca37c459c121c7bee0e0a249eaa498b6d4d Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Wed, 9 Aug 2017 09:51:31 +0000 Subject: Remove redundancy file and do relative modification Change-Id: If6f672a2cbe218a20e3d8f3d093d31f6887d7ca3 Signed-off-by: chenjiankun --- gui/app/scripts/controllers/main.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gui/app/scripts/controllers/main.js') diff --git a/gui/app/scripts/controllers/main.js b/gui/app/scripts/controllers/main.js index e3e880e62..ab76bf0f2 100644 --- a/gui/app/scripts/controllers/main.js +++ b/gui/app/scripts/controllers/main.js @@ -18,11 +18,7 @@ angular.module('yardStickGui2App') $scope.showNextPod = null; $scope.displayContainerInfo = []; $scope.containerList = [{ value: 'create_influxdb', name: "InfluxDB" }, { value: 'create_grafana', name: "Grafana" }] - $scope.items = [ - 'The first choice!', - 'And another choice for you.', - 'but wait! A third!' - ]; + $scope.$on('$destroy', function() { $interval.cancel($scope.intervalImgae) }); @@ -381,7 +377,7 @@ angular.module('yardStickGui2App') $scope.goBack = function goBack() { - $state.go('app2.projectList'); + $state.go('app.projectList'); } $scope.displayContainerInfo = []; -- cgit 1.2.3-korg