aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/CommandController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/dialog/CommandController.js')
-rw-r--r--web/app/view/dialog/CommandController.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/web/app/view/dialog/CommandController.js b/web/app/view/dialog/CommandController.js
index be6245b0..8c566da4 100644
--- a/web/app/view/dialog/CommandController.js
+++ b/web/app/view/dialog/CommandController.js
@@ -121,11 +121,8 @@ Ext.define('Traccar.view.dialog.CommandController', {
onSendResult: function (options, success, response) {
if (success) {
- Ext.toast({
- html: Strings.commandSent,
- align: 'br'
- });
this.closeView();
+ Traccar.app.showToast(Strings.commandSent);
} else {
Traccar.app.showError(response);
}