From 78001c3b91cd8d7057b32320c22dcc97645914f2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 20 Jul 2024 11:23:05 +0200 Subject: [PATCH] chore: Fix remaining emit styles --- src/components/ftbot/StrategySelect.vue | 2 +- src/components/ftbot/TradeActions.vue | 16 ++++++++-------- src/components/ftbot/TradeActionsPopover.vue | 16 ++++++++-------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/ftbot/StrategySelect.vue b/src/components/ftbot/StrategySelect.vue index c5e5dd65..0c124f83 100644 --- a/src/components/ftbot/StrategySelect.vue +++ b/src/components/ftbot/StrategySelect.vue @@ -29,7 +29,7 @@ const props = defineProps({ modelValue: { type: String, required: true }, showDetails: { default: false, required: false, type: Boolean }, }); -const emit = defineEmits<{ 'update:modelValue': [value: boolean] }>(); +const emit = defineEmits<{ 'update:modelValue': [value: string] }>(); const botStore = useBotStore(); diff --git a/src/components/ftbot/TradeActions.vue b/src/components/ftbot/TradeActions.vue index 59e7c9b4..9ace918b 100644 --- a/src/components/ftbot/TradeActions.vue +++ b/src/components/ftbot/TradeActions.vue @@ -92,14 +92,14 @@ defineProps({ default: false, }, }); -defineEmits([ - 'forceExit', - 'forceExitPartial', - 'cancelOpenOrder', - 'reloadTrade', - 'deleteTrade', - 'forceEntry', -]); +defineEmits<{ + forceExit: [trade: Trade, type?: 'limit' | 'market']; + forceExitPartial: [trade: Trade]; + cancelOpenOrder: [trade: Trade]; + reloadTrade: [trade: Trade]; + deleteTrade: [trade: Trade]; + forceEntry: [trade: Trade]; +}>(); diff --git a/src/components/ftbot/TradeActionsPopover.vue b/src/components/ftbot/TradeActionsPopover.vue index 43d5fcec..8cba68b5 100644 --- a/src/components/ftbot/TradeActionsPopover.vue +++ b/src/components/ftbot/TradeActionsPopover.vue @@ -7,14 +7,14 @@ defineProps({ botApiVersion: { type: Number, required: true }, enableForceEntry: { type: Boolean, default: false }, }); -const emit = defineEmits([ - 'forceExit', - 'forceExitPartial', - 'cancelOpenOrder', - 'reloadTrade', - 'deleteTrade', - 'forceEntry', -]); +const emit = defineEmits<{ + forceExit: [trade: Trade, type?: string]; + forceExitPartial: [trade: Trade]; + cancelOpenOrder: [trade: Trade]; + reloadTrade: [trade: Trade]; + deleteTrade: [trade: Trade]; + forceEntry: [trade: Trade]; +}>(); const popoverOpen = ref(false); function forceExitHandler(item: Trade, ordertype: string | undefined = undefined) {