View | Details | Raw Unified | Return to bug 10190
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersList.vue (-9 / +8 lines)
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
        },
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/circulation-rules.js (-1 / +6 lines)
Lines 400-405 export const useCircRulesStore = defineStore("circRules", () => { Link Here
400
                {},
400
                {},
401
                { library_id: "*", effective: false }
401
                { library_id: "*", effective: false }
402
            );
402
            );
403
            if (this.currentLibraryId === "*") {
404
                this.allCurrentLibraryRawRuleSets =
405
                    this.allDefaultLibraryRawRuleSets;
406
                return;
407
            }
408
403
            this.allCurrentLibraryRawRuleSets = await client.circ_rules.getAll(
409
            this.allCurrentLibraryRawRuleSets = await client.circ_rules.getAll(
404
                {},
410
                {},
405
                { library_id: this.currentLibraryId, effective: false }
411
                { library_id: this.currentLibraryId, effective: false }
406
- 

Return to bug 10190