mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +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) {
|
async deleteTrade({ dispatch }, tradeid: string) {
|
||||||
try {
|
try {
|
||||||
const res = await api.delete(`/trades/${tradeid}`);
|
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);
|
return Promise.resolve(res);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error.response);
|
console.error(error.response);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user