aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:31:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:31:31 +1200
commit79f557f7b4bb209876977bba99f8c0a18f672b29 (patch)
tree67aab13a8b33631366a149d0718dec0531060a63 /web/app/view
parent2b15689bd7353f7bb388950408ddaabaeb0c0b53 (diff)
downloadtrackermap-web-79f557f7b4bb209876977bba99f8c0a18f672b29.tar.gz
trackermap-web-79f557f7b4bb209876977bba99f8c0a18f672b29.tar.bz2
trackermap-web-79f557f7b4bb209876977bba99f8c0a18f672b29.zip
Adjustments to the toast stylev3.13
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 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);
}
diff --git a/web/app/view/dialog/RegisterController.js b/web/app/view/dialog/RegisterController.js
index 46ec4b9b..c102581e 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);
}