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 () => {
108108 Save
109109 </v-btn >
110110
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" />
121113 </v-form >
122114 </v-card >
123115 </div >
Original file line number Diff line number Diff line change @@ -153,15 +153,7 @@ async function submitForm() {
153153 </v-btn >
154154
155155 <!-- 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 />
165157 </v-card >
166158 </v-dialog >
167159 </span >
Original file line number Diff line number Diff line change @@ -180,13 +180,6 @@ function uploadFiles() {
180180 @change =" uploadFiles"
181181 />
182182
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 />
192185</template >
Original file line number Diff line number Diff line change @@ -169,17 +169,6 @@ async function submitForm() {
169169 >
170170 Cancel
171171 </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 >
183172 </v-card >
184173 </v-dialog >
185174 </span >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { CollectionReference } from 'firebase/firestore'
33import { mdiClockPlus , mdiPlus } from ' @mdi/js'
44import { computed } from ' vue'
55import type { PropType } from ' vue'
6- import { useErrorMessage , titleCase } from ' #imports'
6+ import { titleCase } from ' #imports'
77
88// Props
99const props = defineProps ({
@@ -37,9 +37,6 @@ const props = defineProps({
3737 },
3838})
3939
40- // App state
41- const errorMessage = useErrorMessage ()
42-
4340// Create related functionality
4441const createIcon = computed (() => {
4542 switch (props .name ) {
@@ -53,14 +50,8 @@ const createIcon = computed(() => {
5350
5451<template >
5552 <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" />
6455
6556 <!-- Delete -->
6657 <LazyFirebaseDeleteAction
Original file line number Diff line number Diff line change @@ -234,15 +234,8 @@ async function signinWithGoogle() {
234234 <v-divider class =" my-2 ml-4" />
235235 </div >
236236
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" />
246239
247240 <v-alert
248241 v-if =" passwordResetMessage"
Original file line number Diff line number Diff line change @@ -179,15 +179,8 @@ async function signinWithGoogle() {
179179 <v-divider class =" my-2 ml-4" />
180180 </div >
181181
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" />
191184
192185 <!-- Password -->
193186 <v-form
You can’t perform that action at this time.
0 commit comments