From 7bb53c64da2dcf88894bfd31503accdd81498f3d Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Wed, 3 Jun 2020 10:06:52 +0200 Subject: Update to new version 5.4 Signed-off-by: Thomas Duval Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea --- .../static/app/common/header/header.controller.js | 56 ---------------------- moon_gui/static/app/common/header/header.tpl.html | 52 -------------------- 2 files changed, 108 deletions(-) delete mode 100755 moon_gui/static/app/common/header/header.controller.js delete mode 100755 moon_gui/static/app/common/header/header.tpl.html (limited to 'moon_gui/static/app/common/header') diff --git a/moon_gui/static/app/common/header/header.controller.js b/moon_gui/static/app/common/header/header.controller.js deleted file mode 100755 index 13ef4d6f..00000000 --- a/moon_gui/static/app/common/header/header.controller.js +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @author arnaud marhin - */ - -(function() { - - 'use strict'; - - angular - .module('moon') - .controller('HeaderController', HeaderController); - - HeaderController.$inject = ['$translate', 'menuService', 'authenticationService', 'alertService']; - - function HeaderController($translate, menuService, authenticationService, alertService) { - - var header = this; - - /* - * - */ - - header.isProjectTabActive = menuService.isProjectTabActive; - header.isPDPTabActive = menuService.isPDPTabActive; - header.isLogsTabActive = menuService.isLogsTabActive; - header.isPolicyTabActive = menuService.isPolicyTabActive; - header.isModelTabActive = menuService.isModelTabActive; - header.changeLocale = changeLocale; - header.logout = logout; - header.currentLanguage = $translate.use(); - - header.getUser = authenticationService.GetUser; - - /* - * - */ - - function changeLocale(localeKey, event) { - - event.preventDefault(); - $translate.use(localeKey); - $translate.preferredLanguage(localeKey); - header.currentLanguage = localeKey; - - } - - function logout(){ - - authenticationService.Logout(); - $translate('moon.logout.success').then( function(translatedValue) { - alertService.alertSuccess(translatedValue); - }); - - } - } -})(); \ No newline at end of file diff --git a/moon_gui/static/app/common/header/header.tpl.html b/moon_gui/static/app/common/header/header.tpl.html deleted file mode 100755 index 7c7633d1..00000000 --- a/moon_gui/static/app/common/header/header.tpl.html +++ /dev/null @@ -1,52 +0,0 @@ - -- cgit 1.2.3-korg