@adminforth/crud-approve-plugin 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,11 @@ const diffFile = ref();
20
20
 
21
21
 
22
22
  async function sendApproveRequest(approved) {
23
- const code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.(undefined, "Approve/Reject Action Confirmation");
23
+ let code = '123456'
24
+ if (approved) {
25
+ code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.(undefined, "Approve Action Confirmation");
26
+ }
27
+
24
28
  const data = await callAdminForthApi({
25
29
  path: `/plugin/crud-approve/update-status`,
26
30
  method: 'POST',
@@ -22,7 +22,11 @@ const newContent = JSON.stringify(props.record[props.meta.resourceColumns.dataCo
22
22
  const diffFile = ref();
23
23
 
24
24
  async function sendApproveRequest(approved) {
25
- const code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.(undefined, "Approve/Reject Action Confirmation");
25
+ let code = '123456'
26
+ if (approved) {
27
+ code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.(undefined, "Approve Action Confirmation");
28
+ }
29
+
26
30
  const data = await callAdminForthApi({
27
31
  path: `/plugin/crud-approve/update-status`,
28
32
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/crud-approve-plugin",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },