From 3b019e5599dfb5d368f4e8fd50fb557f4679a645 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 수, 12 1월 2022 15:19:58 +0900 Subject: [PATCH] 업체/isp/호스팅 기능 개편 --- src/main/webapp/scripts/app/common/common.controller.js | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/scripts/app/common/common.controller.js b/src/main/webapp/scripts/app/common/common.controller.js index 3ca4ae2..d34e718 100644 --- a/src/main/webapp/scripts/app/common/common.controller.js +++ b/src/main/webapp/scripts/app/common/common.controller.js @@ -91,10 +91,16 @@ function changeIssueListMenu(issueTypeId, changeProject = true) { $rootScope.issueTypeMenu = null; - for (var issueType of $rootScope.workIssueTypes) { - if (issueType.id === issueTypeId) { - $rootScope.issueTypeMenu = issueType; - break; + $rootScope.allIssueList = false; + if (issueTypeId == null) { + $rootScope.allIssueList = true; + moveMenu("issues.list"); + }else { + for (var issueType of $rootScope.workIssueTypes) { + if (issueType.id === issueTypeId) { + $rootScope.issueTypeMenu = issueType; + break; + } } } @@ -397,6 +403,18 @@ }); }); + // �궗�슜�옄 愿�由� - �궗�슜�옄 �벑湲� 蹂�寃� �뻽�쓣 �븣 + $rootScope.webSocket.client.subscribe('/user/notification/changeUserLevel', function (notification) { + SweetAlert.warning($filter("translate")("common.changeUserLevel"), $filter("translate")("common.logoutForLevelChange")); + $rootScope.$broadcast("logout"); + }); + + // �궗�슜�옄 愿�由� - �궗�슜�옄 遺��꽌 蹂�寃� �뻽�쓣 �븣 + $rootScope.webSocket.client.subscribe('/user/notification/changeUserDepartment', function (notification) { + SweetAlert.warning($filter("translate")("common.changeUserDepartment"), $filter("translate")("common.logoutForDepartmentChange")); + $rootScope.$broadcast("logout"); + }); + // 李몄뿬 �뾽臾� 怨듦컙 鍮꾪솢�꽦�솕 �븣由� - �빐�떦 �뾽臾� 怨듦컙瑜� 蹂닿퀬 �엳�쓣 �븣 $rootScope.webSocket.client.subscribe('/user/notification/workspace-disabled', function (notification) { // edit by zenith at 20200801 -- Gitblit v1.8.0