관리자 1차 오픈 페이지 분기처리를 위해 활성 프로필 넣어주기

This commit is contained in:
주수현
2025-06-20 10:37:44 +09:00
parent 9bef810505
commit 79a4f64bd2
2 changed files with 6 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ public class AdminURIInterceptor implements HandlerInterceptor {
private final URICurrentMatchingPortIn uriCurrentMatchingPortIn; private final URICurrentMatchingPortIn uriCurrentMatchingPortIn;
private final URIAncestryPortIn uriAncestryPortIn; private final URIAncestryPortIn uriAncestryPortIn;
private final URITopTierPortIn topTierPortIn; private final URITopTierPortIn topTierPortIn;
@Value("${spring.profiles.active}")
private String activeProfiles;
@Value("${app.aws.s3.domain:null}") @Value("${app.aws.s3.domain:null}")
private String cloudFrontDomain; private String cloudFrontDomain;
@@ -71,6 +73,9 @@ public class AdminURIInterceptor implements HandlerInterceptor {
return; return;
} }
// 활성 프로파일 가져오기 TODO 2차 오픈시 삭제 예정
modelAndView.addObject("activeProfile", activeProfiles);
if (!CommonUtil.isAjaxRequest(request)) { if (!CommonUtil.isAjaxRequest(request)) {
URITopTier topTierOutput = topTierPortIn.connect(AppType.ADMIN); URITopTier topTierOutput = topTierPortIn.connect(AppType.ADMIN);
modelAndView.addObject("topNode", recursiveMapping(topTierOutput)); modelAndView.addObject("topNode", recursiveMapping(topTierOutput));

View File

@@ -9,7 +9,6 @@
<!-- hidden parameters --> <!-- hidden parameters -->
<input name="sort" th:field="*{sort}" type="hidden"/> <input name="sort" th:field="*{sort}" type="hidden"/>
<input name="page" th:field="*{page}" type="hidden"/> <input name="page" th:field="*{page}" type="hidden"/>
<div class="input-group"> <div class="input-group">
<div class="input-label"> <div class="input-label">
<p class="label-txt"> <p class="label-txt">
@@ -94,7 +93,7 @@
<div class="row paging"></div> <div class="row paging"></div>
<div class="component-btns bottom-btn-group"> <div class="component-btns bottom-btn-group" th:unless="${activeProfile != 'local'}">
<div class="btns-row align-right"> <div class="btns-row align-right">
<button type="button" class="btn" onclick="goExcel();"> <button type="button" class="btn" onclick="goExcel();">
<span class="btn-txt">엑셀 다운로드 <i class="ico-download ico-small" aria-hidden="true"></i></span> <span class="btn-txt">엑셀 다운로드 <i class="ico-download ico-small" aria-hidden="true"></i></span>