mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 21:20:33 +00:00
plugins: rename init to execute
This commit is contained in:
parent
32bc95da39
commit
2a6820064d
8 changed files with 81 additions and 79 deletions
|
|
@ -84,9 +84,9 @@
|
|||
<span class="icon material-symbols-outlined">gavel</span> License
|
||||
</button>
|
||||
</template>
|
||||
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_init_script">
|
||||
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_execute_script">
|
||||
<button type="button" class="button"
|
||||
@click="$store.pluginInstallStore.handleOpenInit()">
|
||||
@click="$store.pluginInstallStore.handleOpenExecute()">
|
||||
<span class="icon material-symbols-outlined">terminal</span> Script
|
||||
</button>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { toastFrontendSuccess, toastFrontendError } from "/components/notificati
|
|||
import { showConfirmDialog } from "/js/confirmDialog.js";
|
||||
import { store as imageViewerStore } from "/components/modals/image-viewer/image-viewer-store.js";
|
||||
import { store as pluginListStore } from "/components/plugins/list/pluginListStore.js";
|
||||
import { store as pluginInitStore } from "/components/plugins/list/plugin-init-store.js";
|
||||
import { store as pluginExecuteStore } from "/components/plugins/list/plugin-execute-store.js";
|
||||
|
||||
const PLUGIN_API = "plugins/_plugin_installer/plugin_install";
|
||||
const PER_PAGE = 20;
|
||||
|
|
@ -611,9 +611,9 @@ const model = {
|
|||
}
|
||||
},
|
||||
|
||||
handleOpenInit() {
|
||||
handleOpenExecute() {
|
||||
if (this.installedPluginInfo) {
|
||||
pluginInitStore.open(this.installedPluginInfo);
|
||||
pluginExecuteStore.open(this.installedPluginInfo);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue