From 9cb8761422aa2d079f34a63ab99abf9b0e28c1b6 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 Signed-off-by: David Nind Signed-off-by: Jonathan Druart --- .../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 4f770c0456a..669653fa828 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 @@