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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersFormAdd.vue (-1 / +4 lines)
Lines 306-312 export default { Link Here
306
            await client.circRules.update(circRule).then(
306
            await client.circRules.update(circRule).then(
307
                () => {
307
                () => {
308
                    this.$router
308
                    this.$router
309
                        .push({ name: "CirculationTriggersList" })
309
                        .push({
310
                            name: "CirculationTriggersList",
311
                            query: { trigger: this.newTriggerNumber },
312
                        })
310
                        .then(() => this.$router.go(0))
313
                        .then(() => this.$router.go(0))
311
                },
314
                },
312
                error => {}
315
                error => {}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersList.vue (-11 / +9 lines)
Lines 141-157 export default { Link Here
141
    beforeRouteEnter(to, from, next) {
141
    beforeRouteEnter(to, from, next) {
142
        next(vm => {
142
        next(vm => {
143
            vm.getLibraries().then(() =>
143
            vm.getLibraries().then(() =>
144
                vm
144
                vm.getCategories().then(() =>
145
                    .getCategories()
145
                    vm.getItemTypes().then(() =>
146
                    .then(() =>
146
                        vm.getCircRules({}, true).then(() => {
147
                        vm
147
                            vm.tabSelected = to.query.trigger
148
                            .getItemTypes()
148
                                ? `Notice ${to.query.trigger}`
149
                            .then(() =>
149
                                : "Notice 1"
150
                                vm
150
                            vm.initialized = true
151
                                    .getCircRules({}, true)
151
                        })
152
                                    .then(() => (vm.initialized = true))
153
                            )
154
                    )
152
                    )
153
                )
155
            )
154
            )
156
        })
155
        })
157
    },
156
    },
158
- 

Return to bug 10190