plugin_installer: refetch plugin hub on Browse tab

The browse view used x-create on install-index to load the index, but that hook was not a dependable signal when returning from the Git or ZIP tabs. setTab('store') now resets browse state and calls fetchIndex so the hub stays in sync whenever Browse is selected, including on modal open.

Alessandro committed Mar 23, 2026 at 15:28 UTC d986a19839644b8ce7a64223c83f1df45c1f4af9
2 files changed +5 -2
plugins/_plugin_installer/webui/install-index.html
+1 -2
@@ -8,8 +8,7 @@
8 <body>
9 <div x-data>
10 <template x-if="$store.pluginInstallStore">
11 - <div class="pi-browse-shell"
12 - x-create="$store.pluginInstallStore.resetIndex(); $store.pluginInstallStore.fetchIndex()">
11 + <div class="pi-browse-shell">
12
13 <section class="pi-browse-hero">
14 <div class="pi-browse-copy">
plugins/_plugin_installer/webui/pluginInstallStore.js
+4
@@ -64,6 +64,10 @@ const model = {
64 setTab(tab) {
65 this.activeTab = tab;
66 this.result = null;
67 + if (tab === "store") {
68 + this.resetIndex();
69 + void this.fetchIndex();
70 + }
71 },
72
73 setBrowseFilter(filter) {