fix: conflict when pull main
This commit is contained in:
commit
b0813350d7
|
|
@ -1868,12 +1868,37 @@ export default function FormAudioDetail() {
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</Card>
|
</Card>
|
||||||
{Number(detail?.needApprovalFromLevel) == Number(userLevelId) ||
|
{Number(roleId) === 14 ? (
|
||||||
(detail?.needApprovalFromLevel && Number(userLevelNumber) == 1) ||
|
// 🔹 Jika roleId = 14, langsung tampilkan tombol tanpa pengecekan lain
|
||||||
(detail?.isInternationalMedia == true &&
|
<div className="flex flex-col gap-2 p-3">
|
||||||
detail?.isForwardFromNational == true &&
|
<Button
|
||||||
Number(detail?.statusId) == 1) ? (
|
onClick={() => actionApproval("2")}
|
||||||
Number(detail?.uploadedById) == Number(userId) && Number(userLevelNumber) != 1 ? (
|
color="primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />{" "}
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
) : Number(detail?.needApprovalFromLevel) ===
|
||||||
|
Number(userLevelId) ? (
|
||||||
|
Number(detail?.uploadedById) === Number(userId) ? (
|
||||||
""
|
""
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col gap-2 p-3">
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
|
@ -1906,6 +1931,41 @@ export default function FormAudioDetail() {
|
||||||
) : (
|
) : (
|
||||||
""
|
""
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? (
|
||||||
|
Number(detail?.uploadedById) == Number(userId) ? (
|
||||||
|
""
|
||||||
|
) : (
|
||||||
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("2")}
|
||||||
|
color="primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />{" "}
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -2127,8 +2127,73 @@ export default function FormImageDetail() {
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</Card>
|
</Card>
|
||||||
{Number(detail?.needApprovalFromLevel) == Number(userLevelId) ||
|
{Number(roleId) === 14 ? (
|
||||||
(detail?.needApprovalFromLevel && Number(userLevelNumber) == 1) ||
|
// 🔹 Jika roleId = 14 → tampilkan tombol tanpa pengecekan tambahan
|
||||||
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("2")}
|
||||||
|
color="primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
) : Number(detail?.needApprovalFromLevel) === Number(userLevelId) ||
|
||||||
|
(detail?.isInternationalMedia === true &&
|
||||||
|
detail?.isForwardFromNational === true &&
|
||||||
|
Number(detail?.statusId) === 1) ? (
|
||||||
|
Number(detail?.uploadedById) === Number(userId) ? (
|
||||||
|
""
|
||||||
|
) : (
|
||||||
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("2")}
|
||||||
|
color="primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ||
|
||||||
(detail?.isInternationalMedia == true &&
|
(detail?.isInternationalMedia == true &&
|
||||||
detail?.isForwardFromNational == true &&
|
detail?.isForwardFromNational == true &&
|
||||||
Number(detail?.statusId) == 1) ? (
|
Number(detail?.statusId) == 1) ? (
|
||||||
|
|
@ -2164,7 +2229,7 @@ export default function FormImageDetail() {
|
||||||
)
|
)
|
||||||
) : (
|
) : (
|
||||||
""
|
""
|
||||||
)}
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -1711,7 +1711,6 @@ export default function FormImageUpdate() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Description section (stacked, auto overwrite English when translated) */}
|
|
||||||
<div className="py-3 space-y-2">
|
<div className="py-3 space-y-2">
|
||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center">
|
||||||
<Label>
|
<Label>
|
||||||
|
|
@ -1730,6 +1729,7 @@ export default function FormImageUpdate() {
|
||||||
sourceLang: "ID",
|
sourceLang: "ID",
|
||||||
targetLang: "EN",
|
targetLang: "EN",
|
||||||
});
|
});
|
||||||
|
console.log("PPP", res)
|
||||||
|
|
||||||
if (!res.error) {
|
if (!res.error) {
|
||||||
const resultText =
|
const resultText =
|
||||||
|
|
|
||||||
|
|
@ -1862,12 +1862,36 @@ export default function FormTeksDetail() {
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</Card>
|
</Card>
|
||||||
{Number(detail?.needApprovalFromLevel) == Number(userLevelId) ||
|
{Number(roleId) === 14 ? (
|
||||||
(detail?.needApprovalFromLevel && Number(userLevelNumber) == 1) ||
|
// 🔹 Jika roleId = 14 → tampilkan tombol langsung tanpa pengecekan tambahan
|
||||||
(detail?.isInternationalMedia == true &&
|
<div className="flex flex-col gap-2 p-3">
|
||||||
detail?.isForwardFromNational == true &&
|
<Button
|
||||||
Number(detail?.statusId) == 1) ? (
|
onClick={() => actionApproval("2")}
|
||||||
Number(detail?.uploadedById) == Number(userId) && Number(userLevelNumber) != 1 ? (
|
color="primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />{" "}
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
) : Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? (
|
||||||
|
Number(detail?.uploadedById) == Number(userId) ? (
|
||||||
""
|
""
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col gap-2 p-3">
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
|
@ -1900,6 +1924,41 @@ export default function FormTeksDetail() {
|
||||||
) : (
|
) : (
|
||||||
""
|
""
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? (
|
||||||
|
Number(detail?.uploadedById) == Number(userId) ? (
|
||||||
|
""
|
||||||
|
) : (
|
||||||
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("2")}
|
||||||
|
color="primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />{" "}
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -1866,13 +1866,36 @@ export default function FormVideoDetail() {
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</Card>
|
</Card>
|
||||||
{Number(detail?.needApprovalFromLevel) == Number(userLevelId) ||
|
{Number(roleId) === 14 ? (
|
||||||
(detail?.needApprovalFromLevel && Number(userLevelNumber) == 1) ||
|
// 🔹 Jika roleId = 14 → tampilkan tombol langsung tanpa pengecekan lain
|
||||||
(detail?.isInternationalMedia == true &&
|
<div className="flex flex-col gap-2 p-3">
|
||||||
detail?.isForwardFromNational == true &&
|
<Button
|
||||||
Number(detail?.statusId) == 1) ? (
|
onClick={() => actionApproval("2")}
|
||||||
Number(detail?.uploadedById) == Number(userId) &&
|
color="primary"
|
||||||
Number(userLevelNumber) != 1 ? (
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />{" "}
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
) : Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? (
|
||||||
|
Number(detail?.uploadedById) == Number(userId) ? (
|
||||||
""
|
""
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col gap-2 p-3">
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
|
@ -1905,6 +1928,41 @@ export default function FormVideoDetail() {
|
||||||
) : (
|
) : (
|
||||||
""
|
""
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* {Number(detail?.needApprovalFromLevel) == Number(userLevelId) ? (
|
||||||
|
Number(detail?.uploadedById) == Number(userId) ? (
|
||||||
|
""
|
||||||
|
) : (
|
||||||
|
<div className="flex flex-col gap-2 p-3">
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("2")}
|
||||||
|
color="primary"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:check" className="mr-3" />{" "}
|
||||||
|
{t("accept", { defaultValue: "Accept" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("3")}
|
||||||
|
className="bg-orange-400 hover:bg-orange-300"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:comment-o" className="mr-3" />{" "}
|
||||||
|
{t("revision", { defaultValue: "Revision" })}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => actionApproval("4")}
|
||||||
|
color="destructive"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
<Icon icon="fa:times" className="mr-3" />
|
||||||
|
{t("reject", { defaultValue: "Reject" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
import axios from "axios";
|
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({
|
const axiosNulisAIInstance = axios.create({
|
||||||
baseURL,
|
baseURL,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue