Bugzilla – Attachment 188845 Details for
Bug 39320
Create a 'landing page' for ERM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39320: (QA follow-up) Prevent full page reload when clicking a license
1670e39.patch (text/plain), 2.63 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-10-31 18:22:05 UTC
(
hide
)
Description:
Bug 39320: (QA follow-up) Prevent full page reload when clicking a license
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-10-31 18:22:05 UTC
Size:
2.63 KB
patch
obsolete
>From 1670e392e3d3251c46358d4d603107fa6f228720 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Fri, 17 Oct 2025 10:39:08 +0000 >Subject: [PATCH] Bug 39320: (QA follow-up) Prevent full page reload when > clicking a license >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> >--- > .../Widgets/ERMLicensesNeedingAction.vue | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/Widgets/ERMLicensesNeedingAction.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/Widgets/ERMLicensesNeedingAction.vue >index 4304247c62a..17096c5f8c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/Widgets/ERMLicensesNeedingAction.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/Widgets/ERMLicensesNeedingAction.vue >@@ -5,6 +5,7 @@ > ref="table" > v-bind="tableOptions" > :key="JSON.stringify(tableOptions)" >+ @show="goToLicense" > /> > </template> > </WidgetWrapper> >@@ -12,6 +13,7 @@ > > <script> > import { inject, ref, computed } from "vue"; >+import { useRouter } from "vue-router"; > import { storeToRefs } from "pinia"; > import WidgetWrapper from "../WidgetWrapper.vue"; > import KohaTable from "../../KohaTable.vue"; >@@ -32,6 +34,7 @@ export default { > const { authorisedValues } = storeToRefs(ERMStore); > const av_license_statuses = authorisedValues.value.av_license_statuses; > >+ const router = useRouter(); > const table = ref(); > const default_settings = { > status: ["in_negotiation", "not_yet_active", "rejected"], >@@ -117,6 +120,14 @@ export default { > return params; > } > >+ const goToLicense = (row, dt, event) => { >+ event?.preventDefault(); >+ router.push({ >+ name: "LicensesShow", >+ params: { license_id: row.license_id }, >+ }); >+ }; >+ > const tableOptions = computed(() => ({ > columns: [ > { >@@ -172,6 +183,9 @@ export default { > }, > url: "/api/v1/erm/licenses", > default_filters: settingsToQueryParams(settings.value), >+ actions: { >+ 0: ["show"], >+ }, > })); > > const baseWidget = useBaseWidget( >@@ -194,6 +208,7 @@ export default { > ...baseWidget, > table, > tableOptions, >+ goToLicense, > }; > }, > }; >-- >2.51.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39320
:
187513
|
187514
|
187515
|
187516
|
187517
|
187518
|
187519
|
187520
|
187521
|
187522
|
187563
|
187568
|
187635
|
187636
|
187637
|
187638
|
187639
|
187640
|
187641
|
187642
|
187643
|
187644
|
187645
|
188094
|
188095
|
188096
|
188097
|
188098
|
188099
|
188100
|
188101
|
188102
|
188103
|
188104
|
188151
|
188279
|
188280
|
188281
|
188282
|
188283
|
188284
|
188285
|
188312
|
188315
|
188372
|
188375
|
188376
|
188637
|
188638
|
188639
|
188640
|
188641
|
188830
|
188831
|
188832
|
188833
|
188834
|
188835
|
188836
|
188837
|
188838
|
188839
|
188840
|
188841
|
188842
|
188843
|
188844
| 188845 |
188846
|
188847
|
188848
|
188849
|
188850
|
188851
|
188852
|
188853
|
188854
|
188855
|
188856
|
188857
|
188858
|
188859
|
188860
|
188861
|
188862
|
188863
|
188864