From a60e661a6e5a78ae6ca85dae59c495353f05d765 Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Mon, 20 Oct 2025 09:51:49 +0700 Subject: [PATCH] fix: change domain disastages --- components/form/content/audio-detail-form.tsx | 68 +++++++++++++++++- components/form/content/image-detail-form.tsx | 70 ++++++++++++++++++- components/form/content/image-update-form.tsx | 2 +- components/form/content/teks-detail-form.tsx | 65 ++++++++++++++++- components/form/content/video-detail-form.tsx | 65 ++++++++++++++++- service/http-config/axiosNulisAIInstance.ts | 4 +- 6 files changed, 266 insertions(+), 8 deletions(-) diff --git a/components/form/content/audio-detail-form.tsx b/components/form/content/audio-detail-form.tsx index a081a0f9..6ebbf45c 100644 --- a/components/form/content/audio-detail-form.tsx +++ b/components/form/content/audio-detail-form.tsx @@ -1863,8 +1863,37 @@ export default function FormAudioDetail() { - {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? ( - Number(detail?.uploadedById) == Number(userId) ? ( + {Number(roleId) === 14 ? ( + // 🔹 Jika roleId = 14, langsung tampilkan tombol tanpa pengecekan lain +
+ + + +
+ ) : Number(detail?.needApprovalFromLevel) === + Number(userLevelId) ? ( + Number(detail?.uploadedById) === Number(userId) ? ( "" ) : (
@@ -1897,6 +1926,41 @@ export default function FormAudioDetail() { ) : ( "" )} + + {/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? ( + Number(detail?.uploadedById) == Number(userId) ? ( + "" + ) : ( +
+ + + +
+ ) + ) : ( + "" + )} */}
) : ( diff --git a/components/form/content/image-detail-form.tsx b/components/form/content/image-detail-form.tsx index ecb3f576..2182dad6 100644 --- a/components/form/content/image-detail-form.tsx +++ b/components/form/content/image-detail-form.tsx @@ -2126,7 +2126,73 @@ export default function FormImageDetail() { - {Number(detail?.needApprovalFromLevel) == Number(userLevelId) || + {Number(roleId) === 14 ? ( + // 🔹 Jika roleId = 14 → tampilkan tombol tanpa pengecekan tambahan +
+ + + +
+ ) : Number(detail?.needApprovalFromLevel) === Number(userLevelId) || + (detail?.isInternationalMedia === true && + detail?.isForwardFromNational === true && + Number(detail?.statusId) === 1) ? ( + Number(detail?.uploadedById) === Number(userId) ? ( + "" + ) : ( +
+ + + +
+ ) + ) : ( + "" + )} + + {/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) || (detail?.isInternationalMedia == true && detail?.isForwardFromNational == true && Number(detail?.statusId) == 1) ? ( @@ -2162,7 +2228,7 @@ export default function FormImageDetail() { ) ) : ( "" - )} + )} */} ) : ( diff --git a/components/form/content/image-update-form.tsx b/components/form/content/image-update-form.tsx index 300b0223..6d4ba337 100644 --- a/components/form/content/image-update-form.tsx +++ b/components/form/content/image-update-form.tsx @@ -1709,7 +1709,6 @@ export default function FormImageUpdate() { - {/* Description section (stacked, auto overwrite English when translated) */}
) : ( diff --git a/components/form/content/video-detail-form.tsx b/components/form/content/video-detail-form.tsx index a4a8699c..a0067acc 100644 --- a/components/form/content/video-detail-form.tsx +++ b/components/form/content/video-detail-form.tsx @@ -1864,7 +1864,35 @@ export default function FormVideoDetail() { - {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? ( + {Number(roleId) === 14 ? ( + // 🔹 Jika roleId = 14 → tampilkan tombol langsung tanpa pengecekan lain +
+ + + +
+ ) : Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? ( Number(detail?.uploadedById) == Number(userId) ? ( "" ) : ( @@ -1898,6 +1926,41 @@ export default function FormVideoDetail() { ) : ( "" )} + + {/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? ( + Number(detail?.uploadedById) == Number(userId) ? ( + "" + ) : ( +
+ + + +
+ ) + ) : ( + "" + )} */} ) : ( diff --git a/service/http-config/axiosNulisAIInstance.ts b/service/http-config/axiosNulisAIInstance.ts index b4ab6e4e..55c409be 100644 --- a/service/http-config/axiosNulisAIInstance.ts +++ b/service/http-config/axiosNulisAIInstance.ts @@ -1,6 +1,8 @@ import axios from "axios"; -const baseURL = "https://staging.disestages.com/api"; +// const baseURL = "https://staging.disestages.com/api"; + +const baseURL = "https://new.disestages.com/api"; const axiosNulisAIInstance = axios.create({ baseURL,