]> git.koha-community.org Git - koha.git/commit
Bug 37513: Add a way for KohaTable to decide if a button should be displayed
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 19 Aug 2024 17:50:20 +0000 (14:50 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 27 Aug 2024 10:14:25 +0000 (12:14 +0200)
commit68d385ca53f311782967d0654b208beb0c1437b9
treebeff318eb09383977b6ee24b55d30ecc79341b75
parent5cd2a870cd44b0f587ab1b0358360e4281f05153
Bug 37513: Add a way for KohaTable to decide if a button should be displayed

This patch adds, for the case of object parameters in the actions config
entry for the KohaTable Vue component, a check for a function on the
current row, that will be used to determine if a button needs to be
displayed or not.

It checks for the function to be defined, and uses it for checking
displayability.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue