Bugzilla – Attachment 187568 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: Remove 'extends' from the Home component
Bug-39320-Remove-extends-from-the-Home-component.patch (text/plain), 2.46 KB, created by
Matt Blenkinsop
on 2025-10-08 13:46:01 UTC
(
hide
)
Description:
Bug 39320: Remove 'extends' from the Home component
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-10-08 13:46:01 UTC
Size:
2.46 KB
patch
obsolete
>From bf8dc3879778eb5a7d6a6ed8a7072ef5d0b931d0 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >Date: Wed, 8 Oct 2025 13:45:44 +0000 >Subject: [PATCH] Bug 39320: Remove 'extends' from the Home component > >--- > .../prog/js/vue/components/ERM/Home.vue | 21 +++++++++++-------- > .../ModuleDashboard/ModuleDashboard.vue | 3 +++ > 2 files changed, 15 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue >index 0338f19bbd5..a67d22aef56 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Home.vue >@@ -1,3 +1,7 @@ >+<template> >+ <ModuleDashboard :availableWidgets="availableWidgets" /> >+</template> >+ > <script> > import ModuleDashboard from "../ModuleDashboard/ModuleDashboard.vue"; > import ERMCounts from "../ModuleDashboard/Widgets/ERMCounts.vue"; >@@ -7,17 +11,16 @@ import ERMLatestSUSHIJobs from "../ModuleDashboard/Widgets/ERMLatestSUSHIJobs.vu > import { markRaw } from "vue"; > > export default { >- extends: ModuleDashboard, >+ components: { ModuleDashboard }, > setup() { >+ const availableWidgets = [ >+ markRaw(ERMRunUsageReport), >+ markRaw(ERMLatestSUSHIJobs), >+ markRaw(ERMCounts), >+ markRaw(ERMLicensesNeedingAction), >+ ] > return { >- ...ModuleDashboard.setup({ >- availableWidgets: [ >- markRaw(ERMRunUsageReport), >- markRaw(ERMLatestSUSHIJobs), >- markRaw(ERMCounts), >- markRaw(ERMLicensesNeedingAction), >- ], >- }), >+ availableWidgets > }; > }, > }; >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/ModuleDashboard.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/ModuleDashboard.vue >index fdd2738ff35..126944fcd53 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/ModuleDashboard.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/ModuleDashboard.vue >@@ -61,6 +61,9 @@ import { $__ } from "@koha-vue/i18n"; > import { VueDraggableNext } from "vue-draggable-next"; > > export default { >+ props: { >+ availableWidgets: Array >+ }, > setup(props) { > const availableWidgets = props.availableWidgets; > const selectedWidgetsLeft = ref([]); >-- >2.39.5
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