From 0e67ba84e2383272f22ad3694faee663b79ce959 Mon Sep 17 00:00:00 2001 From: jhjang <jhjang@maprex.co.kr> Date: 화, 28 12월 2021 13:29:15 +0900 Subject: [PATCH] - 상단 검색에서 검색 키워드가 없을 경우 알림 추가 --- src/main/webapp/scripts/app/common/common.controller.js | 8 ++++++-- src/main/webapp/i18n/ko/global.json | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/i18n/ko/global.json b/src/main/webapp/i18n/ko/global.json index 4fc527d..00d1919 100644 --- a/src/main/webapp/i18n/ko/global.json +++ b/src/main/webapp/i18n/ko/global.json @@ -798,6 +798,7 @@ "disableParticipationWorkspace": "李몄뿬 �뾽臾� 怨듦컙 鍮꾪솢�꽦�솕 �븣由�", "disableParticipationWorkspaceMessage": "�쁽�옱 �씠�슜�븯怨� �엳�뒗 �뾽臾� 怨듦컙�뿉�꽌 �젣�쇅�릺�뿀�뒿�땲�떎.", "alertsAboutSystem": "�떆�뒪�뀥 �븣由� �젙蹂�", + "alertSystem": "�떆�뒪�뀥 �븣由�", "newAlert": "�깉濡쒖슫 �븣由쇱씠 �솕�뒿�땲�떎.", "pleaseWait": "�옞�떆留� 湲곕떎�젮二쇱꽭�슂...", "createIssue": "�씠�뒋 �깮�꽦", diff --git a/src/main/webapp/scripts/app/common/common.controller.js b/src/main/webapp/scripts/app/common/common.controller.js index 8a4e5bb..3ca4ae2 100644 --- a/src/main/webapp/scripts/app/common/common.controller.js +++ b/src/main/webapp/scripts/app/common/common.controller.js @@ -68,8 +68,12 @@ // 硫붿씤 �긽�떒 寃��깋 function searchAll() { - $rootScope.setCookie("searchKeyword", $scope.vm.searchAll.keyWord, 60000); - moveMenu("issues.list"); + if ($rootScope.isDefined($scope.vm.searchAll.keyWord)) { + $rootScope.setCookie("searchKeyword", $scope.vm.searchAll.keyWord, 60000); + moveMenu("issues.list"); + } else { + SweetAlert.warning($filter("translate")("common.alertSystem"), $filter("translate")("issue.pleaseEnterIssueKeyWord")); + } } function setLastIssueType() { -- Gitblit v1.8.0