mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Ask for confirmation on forcesell
This commit is contained in:
parent
69fd6c81d8
commit
f849adff89
|
@ -102,10 +102,16 @@ export default class TradeList extends Vue {
|
|||
}
|
||||
|
||||
forcesellHandler(item) {
|
||||
this.$bvModal
|
||||
.msgBoxConfirm(`Really forcesell trade ${item.trade_id} (Pair ${item.pair})?`)
|
||||
.then((value: boolean) => {
|
||||
if (value) {
|
||||
this.forcesell(item.trade_id)
|
||||
.then((xxx) => console.log(xxx))
|
||||
.catch((error) => console.log(error.response));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
handleContextMenuEvent(item, index, event) {
|
||||
// stop browser context menu from appearing
|
||||
|
@ -118,7 +124,10 @@ export default class TradeList extends Vue {
|
|||
}
|
||||
|
||||
removeTradeHandler(item) {
|
||||
this.$bvModal.msgBoxConfirm(`Really delete trade ${item.it}?`).then((value: boolean) => {
|
||||
console.log(item);
|
||||
this.$bvModal
|
||||
.msgBoxConfirm(`Really delete trade ${item.trade_id} (Pair ${item.pair})?`)
|
||||
.then((value: boolean) => {
|
||||
if (value) {
|
||||
this.deleteTrade(item.trade_id).catch((error) => console.log(error.response));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user