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

--- Comment #5 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 206527
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206527&action=edit
Bug 43581: Link the plugin store search page back to installed plugins

Home.vue already links out to the store's Search page ("Search for
new plugins"), but Search.vue had no way back other than the admin
sidebar -- which, with 9 sections and 56 links, may not even have
Plugins visible without scrolling. Adds a matching "Installed
plugins" button to Search.vue's toolbar.

Also fixes plugin-store.pl, left over from bug 35837: it redirected
to plugins-home.pl when plugin_store_url was unconfigured, but that
page no longer exists after this bug's earlier commit deletes it, and
blocking the whole controller doesn't make sense now that it also
serves the Home route, which doesn't need a store configured. Moves
the "hide when unconfigured" behaviour to a client-side beforeEnter
guard on the Search route instead, so only Search itself redirects
(to Home) when there's nothing to search.

Test plan:
1. yarn build && restart_all
2. Administration > Plugins > Plugin store: confirm the new
   "Installed plugins" button in the toolbar navigates to the
   installed-plugins page.
3. With plugin_store_url unset in koha-conf.xml, navigate directly to
   /cgi-bin/koha/plugin-store/search: confirm it redirects to the
   installed-plugins page instead of erroring.
4. prove t/Koha/Plugins/Store.t t/Koha/Plugins/Install.t
   t/db_dependent/api/v1/plugins.t
5. yarn cypress run --spec
t/cypress/integration/PluginStore_spec.ts,t/cypress/integration/PluginManager_spec.ts

Co-Authored-By: Claude Sonnet 5 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to