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:
parent
b0c1a3d973
commit
2fdce21dff
|
|
@ -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
|
||||
};
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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([]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue