diff --git a/package.json b/package.json index 20d8d7e865..ec8daae8fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "waves-client", - "version": "1.4.10", + "version": "1.4.11", "description": "The official client application for the Waves platform", "private": true, "repository": { diff --git a/src/modules/dex/directives/dexMyOrders/DexMyOrders.js b/src/modules/dex/directives/dexMyOrders/DexMyOrders.js index cc95287022..d56b5ba31b 100644 --- a/src/modules/dex/directives/dexMyOrders/DexMyOrders.js +++ b/src/modules/dex/directives/dexMyOrders/DexMyOrders.js @@ -4,6 +4,7 @@ const { SIGN_TYPE } = require('@waves/signature-adapter'); const { filter, whereEq, uniqBy, prop, where, gt, pick, __, map } = require('ramda'); const ds = require('data-service'); + const analytics = require('@waves/event-sender'); const { BigNumber } = require('@waves/bignumber'); const MAX_EXCHANGE_COUNT = 2000; const { Money } = require('@waves/data-entities'); @@ -214,6 +215,8 @@ signature: user.matcherSign.signature }) .then(() => { + analytics.send({ name: 'Cancel All Orders', target: 'all' }); + notification.info({ ns: 'app.dex', title: { literal: 'directives.myOrders.notifications.canceledAll' } @@ -298,6 +301,8 @@ dataPromise .then((signedTxData) => ds.cancelOrder(signedTxData, order.amount.asset.id, order.price.asset.id)) .then(() => { + analytics.send({ name: 'Cancel Order', target: 'all' }); + classNameToOrder('force-leave'); const canceledOrder = this.orders.find(whereEq({ id: order.id })); canceledOrder.state = 'Canceled';