| | |
| | | |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | }); |
| | | }); |
| | | |
| | | // 사용자 관리 - 사용자 등급 변경 했을 때 |
| | | $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 |