Fix form loading at imprevisible states
This commit is contained in:
parent
eeec4e7a63
commit
56efa1084a
|
@ -88,6 +88,8 @@ export default {
|
|||
this.resetSettings()
|
||||
this.settings.redirect = window.location.pathname
|
||||
this.state = -1
|
||||
this.resetSettings()
|
||||
this.updateSettingsForm()
|
||||
this.$bvModal.show('modal-add-source')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,11 +41,6 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
this.resetSettings()
|
||||
this.updateSettingsForm()
|
||||
},
|
||||
|
||||
methods: {
|
||||
getFormSettings (state, settings, recallid) {
|
||||
return SourceSettingsApi.getSourceSettings(this.sourceSpecsSelected, state, settings, recallid)
|
||||
|
|
|
@ -98,6 +98,8 @@ export default {
|
|||
this.sourceSpecsSelected = this.$route.params.provider
|
||||
this.state = parseInt(this.$route.params.state)
|
||||
this.updateSourceSpecs()
|
||||
this.resetSettings()
|
||||
this.updateSettingsForm()
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
@ -116,6 +116,11 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
this.resetSettings()
|
||||
this.updateSettingsForm()
|
||||
},
|
||||
|
||||
methods: {
|
||||
editSource () {
|
||||
this.settings = Object.assign({}, this.mySource)
|
||||
|
|
Loading…
Reference in New Issue
Block a user