File tree Expand file tree Collapse file tree 7 files changed +12
-69
lines changed Expand file tree Collapse file tree 7 files changed +12
-69
lines changed Original file line number Diff line number Diff line change @@ -108,16 +108,8 @@ const submitForm = async () => {
108
108
Save
109
109
</v-btn >
110
110
111
- <v-alert
112
- v-if =" errorMessage"
113
- type =" error"
114
- density =" compact"
115
- variant =" plain"
116
- :icon =" false"
117
- class =" mt-4"
118
- >
119
- {{ errorMessage }}
120
- </v-alert >
111
+ <!-- Error message -->
112
+ <AppError class =" mt-4" />
121
113
</v-form >
122
114
</v-card >
123
115
</div >
Original file line number Diff line number Diff line change @@ -153,15 +153,7 @@ async function submitForm() {
153
153
</v-btn >
154
154
155
155
<!-- Error message -->
156
- <v-alert
157
- v-if =" errorMessage"
158
- type =" error"
159
- density =" compact"
160
- variant =" plain"
161
- :icon =" false"
162
- >
163
- {{ errorMessage }}
164
- </v-alert >
156
+ <AppError />
165
157
</v-card >
166
158
</v-dialog >
167
159
</span >
Original file line number Diff line number Diff line change @@ -180,13 +180,6 @@ function uploadFiles() {
180
180
@change =" uploadFiles"
181
181
/>
182
182
183
- <v-alert
184
- v-if =" errorMessage"
185
- type =" error"
186
- density =" compact"
187
- variant =" plain"
188
- :icon =" false"
189
- >
190
- {{ errorMessage }}
191
- </v-alert >
183
+ <!-- Error message -->
184
+ <AppError />
192
185
</template >
Original file line number Diff line number Diff line change @@ -169,17 +169,6 @@ async function submitForm() {
169
169
>
170
170
Cancel
171
171
</v-btn >
172
-
173
- <!-- Error message -->
174
- <v-alert
175
- v-if =" errorMessage"
176
- type =" error"
177
- density =" compact"
178
- variant =" plain"
179
- :icon =" false"
180
- >
181
- {{ errorMessage }}
182
- </v-alert >
183
172
</v-card >
184
173
</v-dialog >
185
174
</span >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { CollectionReference } from 'firebase/firestore'
3
3
import { mdiClockPlus , mdiPlus } from ' @mdi/js'
4
4
import { computed } from ' vue'
5
5
import type { PropType } from ' vue'
6
- import { useErrorMessage , titleCase } from ' #imports'
6
+ import { titleCase } from ' #imports'
7
7
8
8
// Props
9
9
const props = defineProps ({
@@ -37,9 +37,6 @@ const props = defineProps({
37
37
},
38
38
})
39
39
40
- // App state
41
- const errorMessage = useErrorMessage ()
42
-
43
40
// Create related functionality
44
41
const createIcon = computed (() => {
45
42
switch (props .name ) {
@@ -53,14 +50,8 @@ const createIcon = computed(() => {
53
50
54
51
<template >
55
52
<div class =" d-print-none" >
56
- <v-alert
57
- v-if =" errorMessage"
58
- type =" error"
59
- density =" compact"
60
- class =" mb-4"
61
- >
62
- {{ errorMessage }}
63
- </v-alert >
53
+ <!-- Error message -->
54
+ <AppError class =" mb-4" />
64
55
65
56
<!-- Delete -->
66
57
<LazyFirebaseDeleteAction
Original file line number Diff line number Diff line change @@ -234,15 +234,8 @@ async function signinWithGoogle() {
234
234
<v-divider class =" my-2 ml-4" />
235
235
</div >
236
236
237
- <v-alert
238
- v-if =" errorMessage"
239
- type =" error"
240
- density =" compact"
241
- variant =" text"
242
- class =" mb-2 mt-n6 px-0"
243
- >
244
- {{ errorMessage }}
245
- </v-alert >
237
+ <!-- Error message -->
238
+ <AppError class =" mb-2" />
246
239
247
240
<v-alert
248
241
v-if =" passwordResetMessage"
Original file line number Diff line number Diff line change @@ -179,15 +179,8 @@ async function signinWithGoogle() {
179
179
<v-divider class =" my-2 ml-4" />
180
180
</div >
181
181
182
- <v-alert
183
- v-if =" errorMessage"
184
- type =" error"
185
- density =" compact"
186
- variant =" text"
187
- class =" mb-2 mt-n6 px-0"
188
- >
189
- {{ errorMessage }}
190
- </v-alert >
182
+ <!-- Error message -->
183
+ <AppError class =" mb-2" />
191
184
192
185
<!-- Password -->
193
186
<v-form
You can’t perform that action at this time.
0 commit comments