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
- 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
- });
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() {
@@ -198,6 +198,7 @@ async function saveRecord() {
198
198
  if (columnIsUpdated) {
199
199
  updates[key] = record.value[key];
200
200
  }
201
+ saving.value = false;
201
202
  }
202
203
 
203
204
  const resp = await callAdminForthApi({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.17.0-next.62",
3
+ "version": "2.17.0-next.63",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",