mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-21 17:36:39 +00:00
updated
This commit is contained in:
parent
e615d12d8e
commit
9892504163
@ -113,6 +113,7 @@
|
||||
<PersonalitiesCommands
|
||||
v-if="personalities_ready"
|
||||
:commandsList="this.$store.state.mountedPersArr[this.$store.state.config.active_personality_id].commands"
|
||||
:sendCommand="sendMessageEvent"
|
||||
ref="personalityCMD"
|
||||
></PersonalitiesCommands>
|
||||
</div>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<i data-feather="command" class="w-6 h-6"></i>
|
||||
</button>
|
||||
<div v-if="showMenu" id="commands-menu-items" class="absolute mt-4 bg-white border border-gray-300 z-10">
|
||||
<button v-for="command in commands" :key="command.value" @click.prevent="execute_cmd(command.value)" class="menu-button py-2 px-4 cursor-pointer bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 hover:bg-blue-400" :class="{ 'bg-blue-400 text-white': hoveredCommand === command.value }" :title="command.help" @mouseover="hoveredCommand = command.value" @mouseout="hoveredCommand = null" @click="executeCommand(command.value)">
|
||||
<button v-for="command in commands" :key="command.value" @click.prevent="execute_cmd(command.value)" class="menu-button py-2 px-4 cursor-pointer bg-blue-500 text-white dark:bg-blue-200 dark:text-gray-800 hover:bg-blue-400" :class="{ 'bg-blue-400 text-white': hoveredCommand === command.value }" :title="command.help" @mouseover="hoveredCommand = command.value" @mouseout="hoveredCommand = null">
|
||||
{{ command.name }}
|
||||
</button>
|
||||
</div>
|
||||
@ -40,6 +40,7 @@ props: {
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
sendCommand:Function
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -55,6 +56,7 @@ methods: {
|
||||
},
|
||||
execute_cmd(cmd) {
|
||||
this.showMenu = !this.showMenu;
|
||||
this.sendCommand(cmd);
|
||||
},
|
||||
showHelp(command) {
|
||||
this.showHelpText = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user