From 938f61aad47d65f9e09a8d5606b1ac9696d33adc Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 15 Jan 2025 10:40:07 +0000 Subject: [PATCH] Bug 38899: Add a sticky toolbar This patch adds a sticky toolbar to the vendors form Test plan: N.B: This patchset will not work on a sandbox 1) Navigate to Acquisitions and click New vendor 2) The toolbar should appear at the top of the page underneath Add vendor 3) Scroll down, the toolbar should stick and be given the 'floating' class 4) Scroll back up and the toolbar should unstick and lose the 'floating' class --- .../prog/js/vue/components/Toolbar.vue | 30 +++++++++++- .../vue/components/Vendors/VendorFormAdd.vue | 48 ++++++++++--------- .../prog/js/vue/modules/acquisitions.ts | 4 +- 3 files changed, 57 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue index cd968c2029a..3db1eee90b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue @@ -1,5 +1,9 @@ @@ -7,5 +11,29 @@ diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue index 3c042ca82d6..d5f0ac5b2cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorFormAdd.vue @@ -1,32 +1,30 @@