diff --git a/htdocs/src/components/hModalAddSource.vue b/htdocs/src/components/hModalAddSource.vue index 9cefadb..e121938 100644 --- a/htdocs/src/components/hModalAddSource.vue +++ b/htdocs/src/components/hModalAddSource.vue @@ -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') } } diff --git a/htdocs/src/mixins/sourceState.js b/htdocs/src/mixins/sourceState.js index 173f3e7..b8a9ff3 100644 --- a/htdocs/src/mixins/sourceState.js +++ b/htdocs/src/mixins/sourceState.js @@ -41,11 +41,6 @@ export default { } }, - mounted () { - this.resetSettings() - this.updateSettingsForm() - }, - methods: { getFormSettings (state, settings, recallid) { return SourceSettingsApi.getSourceSettings(this.sourceSpecsSelected, state, settings, recallid) diff --git a/htdocs/src/views/source-new-state.vue b/htdocs/src/views/source-new-state.vue index e9da2ea..668535a 100644 --- a/htdocs/src/views/source-new-state.vue +++ b/htdocs/src/views/source-new-state.vue @@ -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: { diff --git a/htdocs/src/views/source-update.vue b/htdocs/src/views/source-update.vue index c4a0af4..659514e 100644 --- a/htdocs/src/views/source-update.vue +++ b/htdocs/src/views/source-update.vue @@ -116,6 +116,11 @@ export default { } }, + mounted () { + this.resetSettings() + this.updateSettingsForm() + }, + methods: { editSource () { this.settings = Object.assign({}, this.mySource)