diff --git a/src/components/management/Stuff.jsx b/src/components/management/Stuff.jsx index a6cbf702..70652b52 100644 --- a/src/components/management/Stuff.jsx +++ b/src/components/management/Stuff.jsx @@ -50,17 +50,15 @@ export default function Stuff() { // } // Navigator clipboard api needs a secure context (https) if (navigator.clipboard && window.isSecureContext) { - console.log('확인11', value) await navigator.clipboard .writeText(value) .then(() => { alert(getMessage('stuff.detail.header.successCopy')) }) - .catch((err) => { + .catch(() => { alert(getMessage('stuff.detail.header.failCopy')) }) } else { - console.log('확인22', value) // Use the 'out of viewport hidden text area' trick const textArea = document.createElement('textArea') textArea.value = value @@ -73,7 +71,6 @@ export default function Stuff() { textArea.select() try { - console.log('deprecated::document.execCommand(`copy`)', document.execCommand('copy')) document.execCommand('copy') alert(getMessage('stuff.detail.header.successCopy')) } catch (err) { diff --git a/src/components/management/StuffDetail.jsx b/src/components/management/StuffDetail.jsx index c16219bd..870a3101 100644 --- a/src/components/management/StuffDetail.jsx +++ b/src/components/management/StuffDetail.jsx @@ -1449,15 +1449,32 @@ export default function StuffDetail() { ) } - return ( <> {(editMode === 'NEW' && (
-
- * - {getMessage('stuff.detail.required')} +
+
+ * + {getMessage('stuff.detail.required')} +
+
+ {!isFormValid ? ( + + ) : ( + + )} + + + +
@@ -1952,8 +1969,46 @@ export default function StuffDetail() { <>
-
- * {getMessage('stuff.detail.required')} +
+
+ * {getMessage('stuff.detail.required')} +
+ {managementState?.tempFlg === '0' ? ( + <> +
+ + + + + +
+ + ) : ( + <> +
+ {!isFormValid ? ( + + ) : ( + + )} + + + +
+ + )}
diff --git a/src/components/management/StuffHeader.jsx b/src/components/management/StuffHeader.jsx index fd81be02..76fb6877 100644 --- a/src/components/management/StuffHeader.jsx +++ b/src/components/management/StuffHeader.jsx @@ -22,17 +22,15 @@ export default function StuffHeader() { const copyObjectNo = async (objectNo) => { if (navigator.clipboard && window.isSecureContext) { - console.log('확인11', objectNo) await navigator.clipboard .writeText(objectNo) .then(() => { alert(getMessage('stuff.detail.header.successCopy')) }) - .catch((err) => { + .catch(() => { alert(getMessage('stuff.detail.header.failCopy')) }) } else { - console.log('확인22', objectNo) // Use the 'out of viewport hidden text area' trick const textArea = document.createElement('textArea') textArea.value = objectNo @@ -45,7 +43,6 @@ export default function StuffHeader() { textArea.select() try { - console.log('deprecated::document.execCommand(`copy`)', document.execCommand('copy')) document.execCommand('copy') alert(getMessage('stuff.detail.header.successCopy')) } catch (err) {