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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Islands/AcquisitionsMenu.vue (-5 / +3 lines)
Lines 335-345 export default { Link Here
335
    mounted() {
335
    mounted() {
336
        const path = location.pathname.substring(1);
336
        const path = location.pathname.substring(1);
337
337
338
        Object.keys(this.$refs).forEach(ref => {
338
        Object.values(this.$refs)
339
            if (this.$refs[ref].href.includes(path)) {
339
            .find(a => a.href.includes(path))
340
                this.$refs[ref].classList.add("current");
340
            ?.classList.add("current");
341
            }
342
        });
343
    },
341
    },
344
};
342
};
345
</script>
343
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Islands/VendorMenu.vue (-7 / +4 lines)
Lines 116-122 export default { Link Here
116
        };
116
        };
117
    },
117
    },
118
    data() {
118
    data() {
119
        const vendorId = this.vendorid ? this.vendorid : this.params.id;
119
        const vendorId = this.vendorid || this.params.id;
120
        return {
120
        return {
121
            vendorId,
121
            vendorId,
122
        };
122
        };
Lines 124-134 export default { Link Here
124
    mounted() {
124
    mounted() {
125
        const path = location.pathname.substring(1);
125
        const path = location.pathname.substring(1);
126
126
127
        Object.keys(this.$refs).forEach(ref => {
127
        Object.values(this.$refs)
128
            if (this.$refs[ref].href.includes(path)) {
128
            .find(a => a.href.includes(path))
129
                this.$refs[ref].classList.add("current");
129
            ?.classList.add("current");
130
            }
131
        });
132
    },
130
    },
133
};
131
};
134
</script>
132
</script>
135
- 

Return to bug 38010