mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 19:51:11 +00:00
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.
This commit is contained in:
parent
338c86a058
commit
d986a19839
2 changed files with 5 additions and 2 deletions
|
|
@ -64,6 +64,10 @@ const model = {
|
|||
setTab(tab) {
|
||||
this.activeTab = tab;
|
||||
this.result = null;
|
||||
if (tab === "store") {
|
||||
this.resetIndex();
|
||||
void this.fetchIndex();
|
||||
}
|
||||
},
|
||||
|
||||
setBrowseFilter(filter) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue