mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 11:05:17 +00:00
IMprove trade deletion message
This commit is contained in:
parent
53b73494db
commit
61fe53660b
|
@ -154,7 +154,11 @@ export default {
|
|||
async deleteTrade({ dispatch }, tradeid: string) {
|
||||
try {
|
||||
const res = await api.delete(`/trades/${tradeid}`);
|
||||
dispatch('alerts/addAlert', { message: `Deleted trade ${tradeid}` }, { root: true });
|
||||
dispatch(
|
||||
'alerts/addAlert',
|
||||
{ message: res.data.result_msg ? res.data.result_msg : `Deleted Trade ${tradeid}` },
|
||||
{ root: true },
|
||||
);
|
||||
return Promise.resolve(res);
|
||||
} catch (error) {
|
||||
console.error(error.response);
|
||||
|
|
Loading…
Reference in New Issue
Block a user