mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Fix tradeaction menu
This commit is contained in:
parent
7bcc2e44ac
commit
bd76da58b7
|
@ -13,7 +13,7 @@
|
||||||
}}</ValuePair>
|
}}</ValuePair>
|
||||||
<!-- <span>Open rate {{ formatPrice(trade.open_rate) }} </span> -->
|
<!-- <span>Open rate {{ formatPrice(trade.open_rate) }} </span> -->
|
||||||
<ValuePair
|
<ValuePair
|
||||||
v-if="show_details && (trade.close_rate || trade.current_rate)"
|
v-if="showDetails && (trade.close_rate || trade.current_rate)"
|
||||||
description="Close Rate"
|
description="Close Rate"
|
||||||
>{{ formatPrice(trade.close_rate || trade.current_rate || 0) }}</ValuePair
|
>{{ formatPrice(trade.close_rate || trade.current_rate || 0) }}</ValuePair
|
||||||
>
|
>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
class="btn-xs text-left"
|
class="btn-xs text-left"
|
||||||
size="sm"
|
size="sm"
|
||||||
title="Forcesell"
|
title="Forcesell"
|
||||||
@click="forcesellHandler(trade)"
|
@click="$emit('forceSell', trade)"
|
||||||
>
|
>
|
||||||
<ForceSellIcon :size="16" title="Forcesell" class="mr-1" />Forcesell
|
<ForceSellIcon :size="16" title="Forcesell" class="mr-1" />Forcesell
|
||||||
</b-button>
|
</b-button>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
class="btn-xs text-left"
|
class="btn-xs text-left"
|
||||||
size="sm"
|
size="sm"
|
||||||
title="Forcesell limit"
|
title="Forcesell limit"
|
||||||
@click="forcesellHandler(trade, 'limit')"
|
@click="$emit('forceSell', trade, 'limit')"
|
||||||
>
|
>
|
||||||
<ForceSellIcon :size="16" title="Forcesell" class="mr-1" />Forcesell limit
|
<ForceSellIcon :size="16" title="Forcesell" class="mr-1" />Forcesell limit
|
||||||
</b-button>
|
</b-button>
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
class="btn-xs text-left mt-1"
|
class="btn-xs text-left mt-1"
|
||||||
size="sm"
|
size="sm"
|
||||||
title="Forcesell market"
|
title="Forcesell market"
|
||||||
@click="forcesellHandler(trade, 'market')"
|
@click="$emit('forceSell', trade, 'market')"
|
||||||
>
|
>
|
||||||
<ForceSellIcon :size="16" title="Forcesell" class="mr-1" />Forcesell market
|
<ForceSellIcon :size="16" title="Forcesell" class="mr-1" />Forcesell market
|
||||||
</b-button>
|
</b-button>
|
||||||
|
@ -60,23 +60,8 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
emits: ['forceSell', 'deleteTrade'],
|
emits: ['forceSell', 'deleteTrade'],
|
||||||
setup(props, { emit, root }) {
|
setup() {
|
||||||
const forcesellHandler = (item: Trade, ordertype: string | undefined = undefined) => {
|
return {};
|
||||||
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,
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -195,12 +195,7 @@ export default class TradeList extends Vue {
|
||||||
return formatPrice(price, this.stakeCurrencyDecimals);
|
return formatPrice(price, this.stakeCurrencyDecimals);
|
||||||
}
|
}
|
||||||
|
|
||||||
forcesellHandler(item: Trade) {
|
forcesellHandler(item: Trade, ordertype: string | undefined = undefined) {
|
||||||
console.log(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
forcesellHandler2(item: Trade, ordertype: string | undefined = undefined) {
|
|
||||||
console.log('forcesell parent');
|
|
||||||
this.$bvModal
|
this.$bvModal
|
||||||
.msgBoxConfirm(`Really forcesell trade ${item.trade_id} (Pair ${item.pair})?`)
|
.msgBoxConfirm(`Really forcesell trade ${item.trade_id} (Pair ${item.pair})?`)
|
||||||
.then((value: boolean) => {
|
.then((value: boolean) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user