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 230-236 export default { Link Here
230
            return new Date().toISOString().substring(0, 10)
230
            return new Date().toISOString().substring(0, 10)
231
        },
231
        },
232
        table_url: function () {
232
        table_url: function () {
233
            let url = "/api/v1/erm/agreements"
233
            let url = this.getResourceTableUrl()
234
            if (this.filters.by_expired)
234
            if (this.filters.by_expired)
235
                url +=
235
                url +=
236
                    "?max_expiration_date=" + this.filters.max_expiration_date
236
                    "?max_expiration_date=" + this.filters.max_expiration_date
237
- 

Return to bug 37301