atom-nuxt 1.0.132 → 1.0.134

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomengine/atom-nuxt",
3
3
  "configKey": "atomNuxt",
4
- "version": "1.0.132",
4
+ "version": "1.0.134",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -172,7 +172,7 @@ const dialogOpen = computed({
172
172
  console.log('currentRouteName', currentRouteName)
173
173
 
174
174
 
175
- if (hasBackState && previousRouteName !== currentRouteName) { // IF THERE IS A BACK STATE AND THE PREVIOUS ROUTE IS THE SAME AS THE CURRENT ROUTE
175
+ if (hasBackState && previousRouteName === currentRouteName) { // Only go back if there's a back state AND the previous route is the same
176
176
  console.log('going back')
177
177
  router.back();
178
178
  } else {
@@ -302,7 +302,7 @@ const saveAction = async () => {
302
302
  await deleteItem(itemToSave.id);
303
303
  }
304
304
  if (formErrors.value == null || Object.keys(formErrors.value).length === 0) {
305
- notify(props.path + ":" + action.value, itemToSave);
305
+ notify(props.path + ":" + action.value, item.value);
306
306
  dialogOpen.value = false;
307
307
  await getItems(parseInt(page.value) ?? null, null, filterValues.value);
308
308
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.0.132",
3
+ "version": "1.0.134",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",