Bot-rename to script setup

This commit is contained in:
Matthias 2023-05-09 18:17:34 +02:00
parent f4d4309be3
commit 1b2c4c3d31

View File

@ -21,18 +21,15 @@
</form>
</template>
<script lang="ts">
<script setup lang="ts">
import { useBotStore } from '@/stores/ftbotwrapper';
import { BotDescriptor } from '@/types';
import { defineComponent, ref } from 'vue';
import { ref } from 'vue';
export default defineComponent({
name: 'BotRename',
props: {
const props = defineProps({
bot: { type: Object as () => BotDescriptor, required: true },
},
emits: ['cancelled', 'saved'],
setup(props, { emit }) {
});
const emit = defineEmits(['cancelled', 'saved']);
const botStore = useBotStore();
const newName = ref<string>(props.bot.botName);
@ -44,10 +41,4 @@ export default defineComponent({
emit('saved');
};
return {
newName,
save,
};
},
});
</script>