atom-nuxt 1.0.135 → 1.0.137

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.135",
4
+ "version": "1.0.137",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -42,23 +42,44 @@ const handleConfirm = () => {
42
42
  <slot v-bind:click="open">
43
43
 
44
44
  </slot>
45
- <v-dialog v-model="dialog" max-width="290">
46
- <v-card>
47
- <v-card-title class="headline">
48
- {{ title }}
49
- </v-card-title>
50
- <v-card-text>
45
+ <v-dialog v-model="dialog" max-width="390">
46
+ <v-card class="bg-white d-flex flex-column pa-0">
47
+ <v-toolbar>
48
+ <v-toolbar-items>
49
+ <v-btn
50
+ color="error"
51
+ variant="flat"
52
+ @click="dialog = false"
53
+ >
54
+ <v-icon color="white" icon="mdi-close"></v-icon>
55
+ </v-btn>
56
+ </v-toolbar-items>
57
+ <v-toolbar-title>
58
+ {{title}}
59
+ </v-toolbar-title>
60
+ </v-toolbar>
61
+ <v-card-text class="pa-5 text-text" style="font-size: 1.25rem;">
51
62
  {{ message }}
52
63
  </v-card-text>
53
- <v-card-actions>
54
- <v-spacer></v-spacer>
55
- <v-btn color="error" @click="dialog = false">
64
+ <v-card-actions class="pa-0 border-t pa-4 elevation-5">
65
+ <v-btn size="large" variant="flat" color="error" @click="dialog = false">
56
66
  Cancel
57
67
  </v-btn>
58
- <v-btn color="success" @click="handleConfirm">
68
+ <v-spacer/>
69
+ <v-btn
70
+ size="large"
71
+ class="px-5"
72
+ color="success"
73
+ variant="flat"
74
+ @click="handleConfirm"
75
+ >
76
+ <v-icon color="white" size="16" class="mr-2"
77
+ icon="mdi-check"></v-icon>
59
78
  OK
60
79
  </v-btn>
61
80
  </v-card-actions>
81
+
82
+
62
83
  </v-card>
63
84
  </v-dialog>
64
85
  </template>
@@ -302,9 +302,12 @@ const saveAction = async () => {
302
302
  await deleteItem(itemToSave.id);
303
303
  }
304
304
  if (formErrors.value == null || Object.keys(formErrors.value).length === 0) {
305
+ const savedPath = props.path;
306
+ const savedAction = action.value;
307
+ const savedItem = item.value;
305
308
  dialogOpen.value = false;
306
309
  await getItems(parseInt(page.value) ?? null, null, filterValues.value);
307
- notify(props.path + ":" + action.value, item.value);
310
+ notify(savedPath + ":" + savedAction, savedItem);
308
311
  }
309
312
  }
310
313
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.0.135",
3
+ "version": "1.0.137",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",