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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/BaseResource.vue (-1 / +11 lines)
Lines 102-108 export default { Link Here
102
                                if (
102
                                if (
103
                                    this.$options.name === this.list_component
103
                                    this.$options.name === this.list_component
104
                                ) {
104
                                ) {
105
                                    this.$refs.table.redraw(this.table_url())
105
                                    this.$refs.table.redraw(
106
                                        this.getResourceTableUrl()
107
                                    )
106
                                } else if (
108
                                } else if (
107
                                    this.$options.name === this.show_component
109
                                    this.$options.name === this.show_component
108
                                ) {
110
                                ) {
Lines 115-120 export default { Link Here
115
                }
117
                }
116
            )
118
            )
117
        },
119
        },
120
        /**
121
         * Return the URL for the resource table.
122
         *
123
         * @return {string}
124
         */
125
        getResourceTableUrl: function () {
126
            return this.resource_table_url
127
        },
118
    },
128
    },
119
    name: "BaseResource",
129
    name: "BaseResource",
120
    props: {
130
    props: {
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementResource.vue (+1 lines)
Lines 15-20 export default { Link Here
15
                add_component: "AgreementsFormAdd",
15
                add_component: "AgreementsFormAdd",
16
                edit_component: "AgreementsFormAddEdit",
16
                edit_component: "AgreementsFormAddEdit",
17
                api_client: APIClient.erm.agreements,
17
                api_client: APIClient.erm.agreements,
18
                resource_table_url: APIClient.erm._baseURL + "agreements",
18
                i18n: {
19
                i18n: {
19
                    display_name: __("Agreement"),
20
                    display_name: __("Agreement"),
20
                },
21
                },
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue (-2 / +1 lines)
Lines 181-187 export default { Link Here
181
            return new Date().toISOString().substring(0, 10)
181
            return new Date().toISOString().substring(0, 10)
182
        },
182
        },
183
        table_url: function () {
183
        table_url: function () {
184
            let url = "/api/v1/erm/agreements"
184
            let url = this.getResourceTableUrl()
185
            if (this.filters.by_expired)
185
            if (this.filters.by_expired)
186
                url +=
186
                url +=
187
                    "?max_expiration_date=" + this.filters.max_expiration_date
187
                    "?max_expiration_date=" + this.filters.max_expiration_date
188
- 

Return to bug 37301