@adminforth/crud-approve-plugin 1.0.10 → 1.0.12
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.
- package/custom/ListPageDiffView.vue +1 -1
- package/custom/ShowPageDiffView.vue +1 -1
- package/index.ts +1 -1
- package/package.json +4 -4
|
@@ -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?.(
|
|
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?.(
|
|
27
|
+
code = await (window).adminforthTwoFaModal.get2FaConfirmationResult?.("Approve Action Confirmation");
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const data = await callAdminForthApi({
|
package/index.ts
CHANGED
|
@@ -361,7 +361,7 @@ export default class CRUDApprovePlugin extends AdminForthPlugin {
|
|
|
361
361
|
adminUser, diffRecord[this.options.resourceColumns.recordIdColumnName],
|
|
362
362
|
diffData['newRecord'], oldRecord, this.adminforth, extra
|
|
363
363
|
);
|
|
364
|
-
if (beforeSaveResp.error !== 'Operation aborted by hook') {
|
|
364
|
+
if (beforeSaveResp.error && beforeSaveResp.error !== 'Operation aborted by hook') {
|
|
365
365
|
response.status = 500;
|
|
366
366
|
return { error: `Failed to apply approved changes: ${beforeSaveResp.error}` };
|
|
367
367
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/crud-approve-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"author": "devforth",
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@adminforth/two-factors-auth": "^2.
|
|
24
|
-
"
|
|
25
|
-
"
|
|
23
|
+
"@adminforth/two-factors-auth": "^2.10.2",
|
|
24
|
+
"adminforth": "^2.13.0-next.51",
|
|
25
|
+
"dayjs": "^1.11.11"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"adminforth": "^2.13.0-next.51"
|