Skip to content

Agent Zero AI framework

plugin_installer: refetch plugin hub on Browse tab

Alessandrod986a1983964
diff --git a/plugins/_plugin_installer/webui/install-index.html b/plugins/_plugin_installer/webui/install-index.html
index fea254167..fd0698898 100644
--- a/plugins/_plugin_installer/webui/install-index.html
+++ b/plugins/_plugin_installer/webui/install-index.html
@@ -8,8 +8,7 @@
<body>
<div x-data>
<template x-if="$store.pluginInstallStore">
- <div class="pi-browse-shell"
- x-create="$store.pluginInstallStore.resetIndex(); $store.pluginInstallStore.fetchIndex()">
+ <div class="pi-browse-shell">
<section class="pi-browse-hero">
<div class="pi-browse-copy">
diff --git a/plugins/_plugin_installer/webui/pluginInstallStore.js b/plugins/_plugin_installer/webui/pluginInstallStore.js
index d6fd0340d..3bfde045c 100644
--- a/plugins/_plugin_installer/webui/pluginInstallStore.js
+++ b/plugins/_plugin_installer/webui/pluginInstallStore.js
@@ -64,6 +64,10 @@ const model = {
setTab(tab) {
this.activeTab = tab;
this.result = null;
+ if (tab === "store") {
+ this.resetIndex();
+ void this.fetchIndex();
+ }
},
setBrowseFilter(filter) {