X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=sdnr%2Fwireless-transport%2Fcode-Carbon-SR1%2Fapps%2Fdlux%2Fdlux-web%2Fsrc%2Fcommon%2Ftopbar%2Ftopbar.controller.js;fp=sdnr%2Fwireless-transport%2Fcode-Carbon-SR1%2Fapps%2Fdlux%2Fdlux-web%2Fsrc%2Fcommon%2Ftopbar%2Ftopbar.controller.js;h=0000000000000000000000000000000000000000;hb=1c1e7f98416875f3ee78af9103865c32f95a82a0;hp=81e9616de6bf61041352ff86e1aa5349d311c839;hpb=6a893bb0ae984d15076394d9225d4873ad953791;p=ccsdk%2Fapps.git diff --git a/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/topbar/topbar.controller.js b/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/topbar/topbar.controller.js deleted file mode 100644 index 81e9616d..00000000 --- a/sdnr/wireless-transport/code-Carbon-SR1/apps/dlux/dlux-web/src/common/topbar/topbar.controller.js +++ /dev/null @@ -1,54 +0,0 @@ -define(['common/topbar/topbar.module', 'common/topbar/topbar.directives', 'common/authentification/auth.services'], function(topbar) { - - topbar.controller('TopbarCtrl', function() { - $('#toggleMenu').click(function(e) { - e.preventDefault(); - $('#wrapper').toggleClass('toggled'); - }); - }); - - topbar.controller('topBarTasksCtrl', function($scope, taskFactory) { - $scope.tasks = taskFactory.getTaskData(); - }); - - topbar.controller('topBarNotifsCtrl', function($scope, notifsFactory) { - $scope.notifs = notifsFactory.getNotifsData(); - $scope.isValid = function(value) { - if (angular.isUndefined(value) || value === null) { - return false; - } else { - return true; - } - }; - }); - - topbar.controller('topBarMessagesCtrl', function($scope, messageFactory) { - $scope.messages = messageFactory.getMessageData(); - $scope.isValid = function(value) { - if (angular.isUndefined(value) || value === null) { - return false; - } else { - return true; - } - }; - }); - - // the authorization module is not converted yet - topbar.controller('topBarUserMenuCtrl', function($scope, $cookieStore, Auth, $window) { - $scope.logOut = logout; - - /** - * Provides logout from application and redirects to login page - * @return {[type]} [description] - */ - function logout() { - Auth.logout(function() { - $window.location.href = 'index.html#/login'; - }); - } - - $scope.getUsername = function() { - return $window.localStorage.odlUser; - }; - }); -});