@adminforth/import-export 1.4.26 → 1.4.27
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/build.log +2 -2
- package/custom/ImportCsv.vue +2 -2
- package/dist/custom/ImportCsv.vue +2 -2
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -11,5 +11,5 @@ custom/package.json
|
|
|
11
11
|
custom/pnpm-lock.yaml
|
|
12
12
|
custom/tsconfig.json
|
|
13
13
|
|
|
14
|
-
sent 17,
|
|
15
|
-
total size is 17,
|
|
14
|
+
sent 17,871 bytes received 134 bytes 36,010.00 bytes/sec
|
|
15
|
+
total size is 17,389 speedup is 0.97
|
package/custom/ImportCsv.vue
CHANGED
|
@@ -116,7 +116,7 @@ async function postData(data: Record<string, string[]>, skipDuplicates: boolean
|
|
|
116
116
|
adminforth.list.refresh();
|
|
117
117
|
}
|
|
118
118
|
adminforth.alert({
|
|
119
|
-
message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `
|
|
119
|
+
message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
|
|
120
120
|
variant: resp.errors?.length ? (
|
|
121
121
|
resp.importedCount ? 'warning' : 'danger'
|
|
122
122
|
) : 'success'
|
|
@@ -138,7 +138,7 @@ async function postDataNewOnly(data: Record<string, string[]>) {
|
|
|
138
138
|
adminforth.list.refresh();
|
|
139
139
|
}
|
|
140
140
|
adminforth.alert({
|
|
141
|
-
message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `
|
|
141
|
+
message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
|
|
142
142
|
variant: resp.errors?.length ? 'warning' : 'success'
|
|
143
143
|
});
|
|
144
144
|
|
|
@@ -116,7 +116,7 @@ async function postData(data: Record<string, string[]>, skipDuplicates: boolean
|
|
|
116
116
|
adminforth.list.refresh();
|
|
117
117
|
}
|
|
118
118
|
adminforth.alert({
|
|
119
|
-
message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `
|
|
119
|
+
message: `Imported ${resp.importedCount || 0} records. Updated ${resp.updatedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
|
|
120
120
|
variant: resp.errors?.length ? (
|
|
121
121
|
resp.importedCount ? 'warning' : 'danger'
|
|
122
122
|
) : 'success'
|
|
@@ -138,7 +138,7 @@ async function postDataNewOnly(data: Record<string, string[]>) {
|
|
|
138
138
|
adminforth.list.refresh();
|
|
139
139
|
}
|
|
140
140
|
adminforth.alert({
|
|
141
|
-
message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `
|
|
141
|
+
message: `Imported ${resp.importedCount || 0} records. ${resp.errors?.length ? `First error: ${resp.errors[0]}` : ''}`,
|
|
142
142
|
variant: resp.errors?.length ? 'warning' : 'success'
|
|
143
143
|
});
|
|
144
144
|
|