fix: check button send in create content
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8fd15cb136
commit
7ddd584159
|
|
@ -160,6 +160,7 @@ export default function FormAudio() {
|
|||
];
|
||||
|
||||
const audioRefs = useRef<HTMLAudioElement[]>([]);
|
||||
const userParentLevelId = getCookiesDecrypt("uplie") || 0;
|
||||
|
||||
const { getRootProps, getInputProps } = useDropzone({
|
||||
accept: {
|
||||
|
|
@ -1808,11 +1809,12 @@ export default function FormAudio() {
|
|||
</Card>
|
||||
<div className="flex flex-row justify-end gap-3">
|
||||
<div className="mt-4">
|
||||
{levelNumber !== "2" && levelNumber !== "3" && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
{levelNumber !== "2" &&
|
||||
!(levelNumber === "3" && userParentLevelId !== "771") && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ export default function FormImage() {
|
|||
const router = useRouter();
|
||||
const editor = useRef(null);
|
||||
const levelNumber = getCookiesDecrypt("ulne");
|
||||
const userParentLevelId = getCookiesDecrypt("uplie") || 0;
|
||||
const roleId = getCookiesDecrypt("urie");
|
||||
type ImageSchema = z.infer<typeof imageSchema>;
|
||||
const params = useParams();
|
||||
|
|
@ -1743,11 +1744,12 @@ export default function FormImage() {
|
|||
{/* <Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button> */}
|
||||
{levelNumber !== "2" && levelNumber !== "3" && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
{levelNumber !== "2" &&
|
||||
!(levelNumber === "3" && userParentLevelId !== "771") && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ export default function FormTeks() {
|
|||
const router = useRouter();
|
||||
const editor = useRef(null);
|
||||
const levelNumber = getCookiesDecrypt("ulne");
|
||||
const userParentLevelId = getCookiesDecrypt("uplie") || 0;
|
||||
type TeksSchema = z.infer<typeof teksSchema>;
|
||||
const params = useParams();
|
||||
const locale = params?.locale;
|
||||
|
|
@ -1778,11 +1779,12 @@ export default function FormTeks() {
|
|||
{/* <Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button> */}
|
||||
{levelNumber !== "2" && levelNumber !== "3" && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
{levelNumber !== "2" &&
|
||||
!(levelNumber === "3" && userParentLevelId !== "771") && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ export default function FormVideo() {
|
|||
polda: false,
|
||||
polres: false,
|
||||
});
|
||||
|
||||
const userParentLevelId = getCookiesDecrypt("uplie") || 0;
|
||||
let fileTypeId = "2";
|
||||
let progressInfo: any = [];
|
||||
let counterUpdateProgress = 0;
|
||||
|
|
@ -1827,11 +1827,12 @@ export default function FormVideo() {
|
|||
{/* <Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button> */}
|
||||
{levelNumber !== "2" && levelNumber !== "3" && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
{levelNumber !== "2" &&
|
||||
!(levelNumber === "3" && userParentLevelId !== "771") && (
|
||||
<Button type="submit" color="primary">
|
||||
{t("submit", { defaultValue: "Submit" })}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-4">
|
||||
<Button
|
||||
|
|
|
|||
Loading…
Reference in New Issue