Merge pull request #728 from Safelite/defect/digital/SSR-1340
SSR-1340 Close modals on page navigation
This commit is contained in:
commit
a723bfa60c
1 changed files with 5 additions and 0 deletions
|
|
@ -98,6 +98,11 @@ export default {
|
||||||
return !this.meta.dirty || !this.meta.valid;
|
return !this.meta.dirty || !this.meta.valid;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
$route(newVal, oldVal) {
|
||||||
|
this.closeModal();
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async validateAndEmit() {
|
async validateAndEmit() {
|
||||||
const validationResult = await this.validate();
|
const validationResult = await this.validate();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue