|
Lines 336-347
export default {
Link Here
|
| 336 |
displayAllApplicableRules: 1, |
336 |
displayAllApplicableRules: 1, |
| 337 |
}; |
337 |
}; |
| 338 |
}, |
338 |
}, |
| 339 |
beforeRouteEnter(to, from, next) { |
|
|
| 340 |
next(async vm => { |
| 341 |
vm.filtersInitialized = true; |
| 342 |
await vm.filterRuleSetsbySearchParam(); |
| 343 |
}); |
| 344 |
}, |
| 345 |
methods: { |
339 |
methods: { |
| 346 |
async loadRuleSets() { |
340 |
async loadRuleSets() { |
| 347 |
this.ruleSetInitialized = false; |
341 |
this.ruleSetInitialized = false; |
|
Lines 429-439
export default {
Link Here
|
| 429 |
this.showModal = newVal.meta && newVal.meta.showModal; |
423 |
this.showModal = newVal.meta && newVal.meta.showModal; |
| 430 |
}, |
424 |
}, |
| 431 |
}, |
425 |
}, |
| 432 |
"$route.query.refresh": { |
426 |
"$route.query": { |
| 433 |
async handler(newVal) { |
427 |
async handler() { |
| 434 |
if (newVal) { |
428 |
if ( |
|
|
429 |
this.$route.fullPath.includes("refresh") || |
| 430 |
this.$route.path.endsWith("circulation_triggers") |
| 431 |
) { |
| 432 |
await this.$nextTick(); |
| 435 |
await this.filterRuleSetsbySearchParam(); |
433 |
await this.filterRuleSetsbySearchParam(); |
| 436 |
} |
434 |
} |
|
|
435 |
this.filtersInitialized = true; |
| 437 |
}, |
436 |
}, |
| 438 |
immediate: true, |
437 |
immediate: true, |
| 439 |
}, |
438 |
}, |