-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditBot.vue
33 lines (29 loc) · 1.02 KB
/
EditBot.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<script setup lang="ts">
import BotDescription from './composables/BotDescription.vue';
import CsvUpload from './composables/CsvUpload.vue'
import BotChat from './composables/BotChat.vue'
import BotTelegram from './composables/BotTelegram.vue';
import { onBeforeMount } from 'vue';
import { useBotStore } from '@/stores/currentBot';
const botStore = useBotStore()
onBeforeMount(()=>{
console.debug('EditBot component before mount')
})
</script>
<template>
<div id="edit-bot-ctr" class="mt-6 space-y-6">
<BotDescription />
<div v-if="botStore.bot!.id">
<div class="divider">csv</div>
<!-- <CsvUpload v-if="!botStore.bot!.csvSaved" /> -->
<CsvUpload />
<div v-if="botStore.bot!.csvSaved">
<!-- <CsvReupload/> -->
<div class="divider">testing (chat)</div>
<BotChat/>
<div class="divider">telegram integration</div>
<BotTelegram/>
</div>
</div>
</div>
</template>