adminforth 2.17.0-next.62 → 2.17.0-next.63
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.
|
@@ -200,23 +200,25 @@ async function saveRecord() {
|
|
|
200
200
|
});
|
|
201
201
|
if (response?.error && response?.error !== 'Operation aborted by hook') {
|
|
202
202
|
showErrorTost(response.error);
|
|
203
|
-
}
|
|
204
|
-
saving.value = false;
|
|
205
|
-
if (route.query.returnTo) {
|
|
206
|
-
router.push(<string>route.query.returnTo);
|
|
207
203
|
} else {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
204
|
+
saving.value = false;
|
|
205
|
+
if (route.query.returnTo) {
|
|
206
|
+
router.push(<string>route.query.returnTo);
|
|
207
|
+
} else {
|
|
208
|
+
router.push({
|
|
209
|
+
name: 'resource-show',
|
|
210
|
+
params: {
|
|
211
|
+
resourceId: route.params.resourceId,
|
|
212
|
+
primaryKey: response.newRecordId
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
alert({
|
|
216
|
+
message: t('Record created successfully!'),
|
|
217
|
+
variant: 'success'
|
|
218
|
+
});
|
|
219
|
+
}
|
|
219
220
|
}
|
|
221
|
+
saving.value = false;
|
|
220
222
|
}
|
|
221
223
|
|
|
222
224
|
function scrollToInvalidField() {
|