Bug 39320: Remove 'extends' from the Home component

Sponsored-by: UKHSA (UK Health Security Agency)

Signed-off-by: Jeremy Evans <Jeremy.Evans@ukhsa.gov.uk>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Matt Blenkinsop 2025-10-08 13:45:44 +00:00 committed by Lucas Gass
parent b0c1a3d973
commit 2fdce21dff
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 15 additions and 9 deletions

View File

@ -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
};
},
};

View File

@ -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([]);