remove redundant x-destroy attributes in plugin-related HTML files
Alessandro committed
Mar 13, 2026 at 22:17 UTC
abdb354d2638c6a7cfa010aa084dcfa6b0a85ac9
5 files changed
+6
-8
plugins/_plugin_installer/webui/install-detail.html
+1
-2
@@ -8,8 +8,7 @@
8
<body>
9
<div x-data>
10
<template x-if="$store.pluginInstallStore?.selectedPlugin">
11
- <div class="pi-detail-container"
12
- x-destroy="$store.pluginInstallStore.refreshPluginList()">
11
+ <div class="pi-detail-container">
12
<div class="pi-hero">
13
<div class="pi-hero-thumb">
14
<template x-if="$store.pluginInstallStore.getDetailThumbnailUrl()">
plugins/_plugin_installer/webui/main.html
+1
-2
@@ -10,8 +10,7 @@
10
<body>
11
<div x-data>
12
<template x-if="$store.pluginInstallStore">
13
- <div x-create="$store.pluginInstallStore.setTab('store')"
14
- x-destroy="$store.pluginInstallStore.refreshPluginList()">
13
+ <div x-create="$store.pluginInstallStore.setTab('store')">
14
15
<ul class="nav nav-tabs" role="tablist">
16
<li class="nav-item" role="presentation">
plugins/_plugin_installer/webui/pluginInstallStore.js
+2
-1
@@ -730,7 +730,8 @@ const model = {
730
731
/** Refresh related list views after installer/detail actions. */
732
refreshPluginList() {
733
- if (pluginListStore.activeTab === "marketplace") {
733
+ const marketplaceActive = pluginListStore.activeTab === "marketplace";
734
+ if (marketplaceActive) {
735
void this.fetchIndex();
736
}
737
pluginListStore.refresh();
webui/components/plugins/plugin-settings.html
+1
-1
@@ -18,7 +18,7 @@
18
<template x-if="context">
19
<div>
20
<div x-create="context.onModalOpen(); (() => { const modal = $el.closest('.modal'); if (modal) modal.__pluginSettingsContext = context; })()"
21
- x-destroy="context.cleanup(); $store.pluginListStore?.refresh()">
21
+ x-destroy="context.cleanup()">
22
23
<!-- Context toolbar: Project + Agent profile (only when at least one scope is configurable) -->
24
<div class="plugin-settings-scope-section"
webui/components/plugins/toggle/plugin-toggle-advanced.html
+1
-2
@@ -8,8 +8,7 @@
8
<body>
9
<div x-data>
10
<template x-if="$store.pluginToggle">
11
- <div x-create="$store.pluginToggle.open($store.pluginListStore?.selectedPlugin || '')"
12
- x-destroy="$store.pluginToggle.cleanup(); $store.pluginListStore?.refresh()">
11
+ <div x-create="$store.pluginToggle.open($store.pluginListStore?.selectedPlugin || '')">
12
13
<!-- Error -->
14
<div x-show="$store.pluginToggle.error" class="plugin-settings-error">