[Koha-bugs] [Bug 32806] Some Vue files need to be moved for better reusability

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 23 23:38:55 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32806

--- Comment #54 from David Cook <dcook at prosentient.com.au> ---
(In reply to Agustín Moyano from comment #11)
> Ok, but I still believe all logic of Datatables should be encapsulated by a
> single component... meaning that what it is in composables/datatables.js
> should be logic that belongs to a table component (Datatable, Kohatable, or
> whatever you believe best to call it). In that case, if somewhere in the
> future we want to replace Datatables with something else, there is a single
> place to touch and is more consistent with Vue's "spirit" of things

Agreed. It seems like we've got quite a bit of duplicated code in the different
components. I'm not sure that we need so many? I wonder if some things are
components when they could be regular Javascript objects or JSON objects. Would
need to take a deeper look to know for sure...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list