mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Small fix to tradeList
This commit is contained in:
parent
7dbea21e91
commit
d08250925a
|
@ -5,7 +5,7 @@
|
||||||
small
|
small
|
||||||
hover
|
hover
|
||||||
stacked="md"
|
stacked="md"
|
||||||
:items="trades"
|
:items="[...trades]"
|
||||||
:fields="tableFields"
|
:fields="tableFields"
|
||||||
show-empty
|
show-empty
|
||||||
:empty-text="emptyText"
|
:empty-text="emptyText"
|
||||||
|
@ -190,10 +190,7 @@ export default defineComponent({
|
||||||
|
|
||||||
const forceExitPartialHandler = (item: Trade) => {
|
const forceExitPartialHandler = (item: Trade) => {
|
||||||
feTrade.value = item;
|
feTrade.value = item;
|
||||||
nextTick(() => {
|
forceExitVisible.value = true;
|
||||||
console.log('showing modal', item);
|
|
||||||
root?.proxy.$bvModal.show('forceexit-modal');
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleContextMenuEvent = (item, index, event) => {
|
const handleContextMenuEvent = (item, index, event) => {
|
||||||
|
@ -221,16 +218,11 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const onRowClicked = (item, index) => {
|
const onRowClicked = (item) => {
|
||||||
// Only allow single selection mode!
|
// Only allow single selection mode!
|
||||||
if (
|
if (item && item.trade_id !== botStore.activeBot.detailTradeId) {
|
||||||
item &&
|
|
||||||
item.trade_id !== botStore.activeBot.detailTradeId &&
|
|
||||||
!tradesTable.value?.isRowSelected(index)
|
|
||||||
) {
|
|
||||||
botStore.activeBot.setDetailTrade(item);
|
botStore.activeBot.setDetailTrade(item);
|
||||||
} else {
|
} else {
|
||||||
console.log('unsetting item');
|
|
||||||
botStore.activeBot.setDetailTrade(null);
|
botStore.activeBot.setDetailTrade(null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user