File tree Expand file tree Collapse file tree
web-frontend/modules/database/components/field Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,6 +187,8 @@ export default {
187187 try {
188188 const { data } = await this .$store .dispatch (' field/deleteCall' , field)
189189 this .$emit (' delete' )
190+ this .hide ()
191+ this .deleteLoading = false
190192 await this .$store .dispatch (' field/forceDelete' , field)
191193 await this .$store .dispatch (' field/forceUpdateFields' , {
192194 fields: data .related_fields ,
@@ -198,13 +200,14 @@ export default {
198200 } catch (error) {
199201 if (error .response && error .response .status === 404 ) {
200202 this .$emit (' delete' )
203+ this .hide ()
204+ this .deleteLoading = false
201205 await this .$store .dispatch (' field/forceDelete' , field)
202206 } else {
203207 notifyIf (error, ' field' )
208+ this .deleteLoading = false
204209 }
205210 }
206- this .hide ()
207- this .deleteLoading = false
208211 },
209212 },
210213}
You can’t perform that action at this time.
0 commit comments