@adminforth/crud-approve-plugin 1.0.15 → 1.0.17

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,16 +20,10 @@ const diffFile = ref();
20
20
 
21
21
 
22
22
  async function sendApproveRequest(approved) {
23
- let code = '123456'
24
- if (approved) {
25
- code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.("Approve Action Confirmation");
26
- }
27
-
28
23
  const data = await callAdminForthApi({
29
24
  path: `/plugin/crud-approve/update-status`,
30
25
  method: 'POST',
31
26
  body: {
32
- meta: { confirmationResult: code },
33
27
  connectorId: props.resource.connectorId,
34
28
  resourceId: props.resource.resourceId,
35
29
  action: props.record[props.meta.resourceColumns.actionColumnName],
@@ -22,16 +22,10 @@ const newContent = JSON.stringify(props.record[props.meta.resourceColumns.dataCo
22
22
  const diffFile = ref();
23
23
 
24
24
  async function sendApproveRequest(approved) {
25
- let code = '123456'
26
- if (approved) {
27
- code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.("Approve Action Confirmation");
28
- }
29
-
30
25
  const data = await callAdminForthApi({
31
26
  path: `/plugin/crud-approve/update-status`,
32
27
  method: 'POST',
33
28
  body: {
34
- meta: { confirmationResult: code },
35
29
  connectorId: props.resource.connectorId,
36
30
  resourceId: props.resource.resourceId,
37
31
  action: props.record[props.meta.resourceColumns.actionColumnName],
@@ -22,7 +22,7 @@ const diffFile = ref();
22
22
  async function sendApproveRequest(approved) {
23
23
  let code = '123456'
24
24
  if (approved) {
25
- code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.("Approve Action Confirmation");
25
+ code = await (window).adminforthTwoFaModal?.get2FaConfirmationResult?.("Approve Action Confirmation");
26
26
  }
27
27
 
28
28
  const data = await callAdminForthApi({
@@ -24,7 +24,7 @@ const diffFile = ref();
24
24
  async function sendApproveRequest(approved) {
25
25
  let code = '123456'
26
26
  if (approved) {
27
- code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.("Approve Action Confirmation");
27
+ code = await (window).adminforthTwoFaModal?.get2FaConfirmationResult?.("Approve Action Confirmation");
28
28
  }
29
29
 
30
30
  const data = await callAdminForthApi({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/crud-approve-plugin",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/build.log DELETED
@@ -1,15 +0,0 @@
1
-
2
- > @adminforth/crud-approve-plugin@1.0.13 build
3
- > tsc && rsync -av --exclude 'node_modules' custom dist/
4
-
5
- sending incremental file list
6
- custom/
7
- custom/ListPageDiffView.vue
8
- custom/ShowPageDiffView.vue
9
- custom/package-lock.json
10
- custom/package.json
11
- custom/pnpm-lock.yaml
12
- custom/tsconfig.json
13
-
14
- sent 32,973 bytes received 134 bytes 66,214.00 bytes/sec
15
- total size is 32,471 speedup is 0.98