diff --git a/src/components/ftbot/CustomTradeListEntry.vue b/src/components/ftbot/CustomTradeListEntry.vue
index b1eab526..8c622725 100644
--- a/src/components/ftbot/CustomTradeListEntry.vue
+++ b/src/components/ftbot/CustomTradeListEntry.vue
@@ -13,7 +13,7 @@
}}
{{ formatPrice(trade.close_rate || trade.current_rate || 0) }}
diff --git a/src/components/ftbot/TradeActions.vue b/src/components/ftbot/TradeActions.vue
index 9a528df0..8cdfb66d 100644
--- a/src/components/ftbot/TradeActions.vue
+++ b/src/components/ftbot/TradeActions.vue
@@ -5,7 +5,7 @@
class="btn-xs text-left"
size="sm"
title="Forcesell"
- @click="forcesellHandler(trade)"
+ @click="$emit('forceSell', trade)"
>
Forcesell
@@ -14,7 +14,7 @@
class="btn-xs text-left"
size="sm"
title="Forcesell limit"
- @click="forcesellHandler(trade, 'limit')"
+ @click="$emit('forceSell', trade, 'limit')"
>
Forcesell limit
@@ -23,7 +23,7 @@
class="btn-xs text-left mt-1"
size="sm"
title="Forcesell market"
- @click="forcesellHandler(trade, 'market')"
+ @click="$emit('forceSell', trade, 'market')"
>
Forcesell market
@@ -60,23 +60,8 @@ export default defineComponent({
},
},
emits: ['forceSell', 'deleteTrade'],
- setup(props, { emit, root }) {
- const forcesellHandler = (item: Trade, ordertype: string | undefined = undefined) => {
- root.$bvModal
- .msgBoxConfirm(`Really222 forcesell trade ${item.trade_id} (Pair ${item.pair})?`)
- .then((value: boolean) => {
- if (value) {
- console.log('emitting');
- emit('forceSell', item);
- emit('forceSell', { item, ordertype });
- console.log('emittin2g');
- }
- });
- };
-
- return {
- forcesellHandler,
- };
+ setup() {
+ return {};
},
});
diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue
index 8833951c..dd0210ce 100644
--- a/src/components/ftbot/TradeList.vue
+++ b/src/components/ftbot/TradeList.vue
@@ -195,12 +195,7 @@ export default class TradeList extends Vue {
return formatPrice(price, this.stakeCurrencyDecimals);
}
- forcesellHandler(item: Trade) {
- console.log(item);
- }
-
- forcesellHandler2(item: Trade, ordertype: string | undefined = undefined) {
- console.log('forcesell parent');
+ forcesellHandler(item: Trade, ordertype: string | undefined = undefined) {
this.$bvModal
.msgBoxConfirm(`Really forcesell trade ${item.trade_id} (Pair ${item.pair})?`)
.then((value: boolean) => {