From 9df27870ff9ab926e3be9c4e32a7c840dfbe3908 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 24 Feb 2026 14:37:20 -0100 Subject: [PATCH] Bug 41916: Clean-up obsolete code No longer needed after bug 40191, but because both that and bug 37893 went in close to each other, this remained. Removing this fixes the toolbar buttons on the SIP2 account form and fixes the console warning that was causing a failure in cypress tests --- .../components/SIP2/SIP2AccountResource.vue | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/SIP2/SIP2AccountResource.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/SIP2/SIP2AccountResource.vue index 207b807d5c7..1a8b06b1ecc 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/SIP2/SIP2AccountResource.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/SIP2/SIP2AccountResource.vue @@ -926,25 +926,6 @@ export default { }, ]; - const additionalToolbarButtons = (resource, componentData) => { - const buttons = { - form: [ - { - title: $__("Submit"), - form: componentData.resourceForm, - }, - { - to: { - name: "SIP2AccountsList", - }, - title: $__("Cancel"), - cssClass: "btn btn-link", - }, - ], - }; - return buttons; - }; - const baseResource = useBaseResource({ resourceName: "account", nameAttr: "login_id", @@ -971,7 +952,6 @@ export default { APIClient.sip2.httpClient._baseURL + "accounts", options: { embed: "institution" }, }, - additionalToolbarButtons, stickyToolbar: ["Form"], embedded: props.embedded, formGroupsDisplayMode: "accordion", -- 2.39.5