aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/dialog/CommandController.js5
-rw-r--r--web/app/view/dialog/RegisterController.js2
2 files changed, 2 insertions, 5 deletions
diff --git a/web/app/view/dialog/CommandController.js b/web/app/view/dialog/CommandController.js
index be6245b..8c566da 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);
}
diff --git a/web/app/view/dialog/RegisterController.js b/web/app/view/dialog/RegisterController.js
index 46ec4b9..c102581 100644
--- a/web/app/view/dialog/RegisterController.js
+++ b/web/app/view/dialog/RegisterController.js
@@ -35,7 +35,7 @@ Ext.define('Traccar.view.dialog.RegisterController', {
onCreateReturn: function (options, success, response) {
if (success) {
this.closeView();
- Ext.toast(Strings.loginCreated);
+ Traccar.app.showToast(Strings.loginCreated);
} else {
Traccar.app.showError(response);
}