chore: Update buttons in bots page (#11123)
This commit is contained in:
@@ -10,6 +10,7 @@ import AgentBotRow from './components/AgentBotRow.vue';
|
|||||||
|
|
||||||
import SettingsLayout from '../SettingsLayout.vue';
|
import SettingsLayout from '../SettingsLayout.vue';
|
||||||
import BaseSettingsHeader from '../components/BaseSettingsHeader.vue';
|
import BaseSettingsHeader from '../components/BaseSettingsHeader.vue';
|
||||||
|
import Button from 'dashboard/components-next/button/Button.vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
@@ -68,13 +69,11 @@ const onEditAgentBot = bot => {
|
|||||||
feature-name="agent_bots"
|
feature-name="agent_bots"
|
||||||
>
|
>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<woot-button
|
<Button
|
||||||
class="rounded-md button nice"
|
icon="i-lucide-circle-plus"
|
||||||
icon="add-circle"
|
:label="$t('AGENT_BOTS.ADD.TITLE')"
|
||||||
@click="onConfigureNewBot"
|
@click="onConfigureNewBot"
|
||||||
>
|
/>
|
||||||
{{ $t('AGENT_BOTS.ADD.TITLE') }}
|
|
||||||
</woot-button>
|
|
||||||
</template>
|
</template>
|
||||||
</BaseSettingsHeader>
|
</BaseSettingsHeader>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import ShowMore from 'dashboard/components/widgets/ShowMore.vue';
|
import ShowMore from 'dashboard/components/widgets/ShowMore.vue';
|
||||||
import AgentBotType from './AgentBotType.vue';
|
import AgentBotType from './AgentBotType.vue';
|
||||||
|
import Button from 'dashboard/components-next/button/Button.vue';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
agentBot: {
|
agentBot: {
|
||||||
@@ -35,21 +36,21 @@ const isACSMLTypeBot = computed(() => {
|
|||||||
</td>
|
</td>
|
||||||
<td class="align-middle">
|
<td class="align-middle">
|
||||||
<div class="flex justify-end gap-1 h-full items-center">
|
<div class="flex justify-end gap-1 h-full items-center">
|
||||||
<woot-button
|
<Button
|
||||||
v-if="isACSMLTypeBot"
|
v-if="isACSMLTypeBot"
|
||||||
v-tooltip.top="$t('AGENT_BOTS.EDIT.BUTTON_TEXT')"
|
v-tooltip.top="$t('AGENT_BOTS.EDIT.BUTTON_TEXT')"
|
||||||
variant="smooth"
|
icon="i-lucide-pen"
|
||||||
size="tiny"
|
slate
|
||||||
color-scheme="secondary"
|
xs
|
||||||
icon="edit"
|
faded
|
||||||
@click="emit('edit', agentBot)"
|
@click="emit('edit', agentBot)"
|
||||||
/>
|
/>
|
||||||
<woot-button
|
<Button
|
||||||
v-tooltip.top="$t('AGENT_BOTS.DELETE.BUTTON_TEXT')"
|
v-tooltip.top="$t('AGENT_BOTS.DELETE.BUTTON_TEXT')"
|
||||||
variant="smooth"
|
icon="i-lucide-trash-2"
|
||||||
color-scheme="alert"
|
xs
|
||||||
size="tiny"
|
ruby
|
||||||
icon="dismiss-circle"
|
faded
|
||||||
@click="emit('delete', agentBot, index)"
|
@click="emit('delete', agentBot, index)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,9 +2,10 @@
|
|||||||
import { useVuelidate } from '@vuelidate/core';
|
import { useVuelidate } from '@vuelidate/core';
|
||||||
import { required } from '@vuelidate/validators';
|
import { required } from '@vuelidate/validators';
|
||||||
import CsmlMonacoEditor from './CSMLMonacoEditor.vue';
|
import CsmlMonacoEditor from './CSMLMonacoEditor.vue';
|
||||||
|
import NextButton from 'dashboard/components-next/button/Button.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { CsmlMonacoEditor },
|
components: { CsmlMonacoEditor, NextButton },
|
||||||
props: {
|
props: {
|
||||||
agentBot: {
|
agentBot: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@@ -86,9 +87,10 @@ export default {
|
|||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<woot-button>
|
<NextButton
|
||||||
{{ $t('AGENT_BOTS.CSML_BOT_EDITOR.SUBMIT') }}
|
type="submit"
|
||||||
</woot-button>
|
:label="$t('AGENT_BOTS.CSML_BOT_EDITOR.SUBMIT')"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user