Bug 33529

Summary: Increase flexibility of action buttons in Vue Kohatables
Product: Koha Reporter: Matt Blenkinsop <matt.blenkinsop>
Component: ERMAssignee: Matt Blenkinsop <matt.blenkinsop>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, jonathan.field, martin.renvoize, matt.blenkinsop, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 33066    
Bug Blocks:    
Attachments: Bug 33529: Update KohaTable to accept customised buttons
Bug 33529: Update action buttons in list components

Description Matt Blenkinsop 2023-04-13 15:42:32 UTC
In the usage statistics modules there is a need for some additional "action" buttons on top of the standard "edit" and "delete" (e.g. "Download" or "Run now").

This bug changes the way the action buttons are passed to the new KohaTable component so that extra customisation can be added where needed
Comment 1 Matt Blenkinsop 2023-04-13 15:50:35 UTC
Created attachment 149610 [details] [review]
Bug 33529: Update KohaTable to accept customised buttons

This patch updates the KohaTable component to accept action buttons as objects rather than as hard coded strings. This allows buttons to be customised for different use cases

Test plan:
1) Apply patch
2) Run yarn build
3) Navigate to Agreements - add an agreement if the table is empty
4) Test the buttons for editing and deleting agreements in the "Actions" column
5) Repeat for licenses
6) Repeat for local packages
7) Repeat for local titles
Comment 2 Matt Blenkinsop 2023-04-13 15:50:37 UTC
Created attachment 149611 [details] [review]
Bug 33529: Update action buttons in list components

This patch updates the inputs in the different list components

Test plan as above
Comment 3 Jonathan Druart 2023-04-13 18:19:09 UTC
I think this is done in https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149566
Comment 4 Matt Blenkinsop 2023-04-14 07:58:21 UTC
Ah yes, hadn't spotted that patch - I'll close this one
Comment 5 Matt Blenkinsop 2023-04-14 07:59:12 UTC

*** This bug has been marked as a duplicate of bug 33483 ***