Bug 33529 - Increase flexibility of action buttons in Vue Kohatables
Summary: Increase flexibility of action buttons in Vue Kohatables
Status: RESOLVED DUPLICATE of bug 33483
Alias: None
Product: Koha
Classification: Unclassified
Component: ERM (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Matt Blenkinsop
QA Contact:
URL:
Keywords:
Depends on: 33066
Blocks:
  Show dependency treegraph
 
Reported: 2023-04-13 15:42 UTC by Matt Blenkinsop
Modified: 2023-04-14 07:59 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 33529: Update KohaTable to accept customised buttons (3.10 KB, patch)
2023-04-13 15:50 UTC, Matt Blenkinsop
Details | Diff | Splinter Review
Bug 33529: Update action buttons in list components (4.31 KB, patch)
2023-04-13 15:50 UTC, Matt Blenkinsop
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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 ***