From 86de1f69bd93ca8a0426c7c55bb7d56c7e21f662 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 | 40 ++++++++++--------- .../prog/js/vue/modules/acquisitions.ts | 3 +- 3 files changed, 52 insertions(+), 21 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 5cdbd5807d9..24eab08169b 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 9b6ebb616f1..7bb4a7f4cfe 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,28 +1,26 @@