From 79f557f7b4bb209876977bba99f8c0a18f672b29 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 9 Jul 2017 10:31:31 +1200 Subject: Adjustments to the toast style --- web/app/view/dialog/CommandController.js | 5 +---- web/app/view/dialog/RegisterController.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'web/app/view') 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); } -- cgit v1.2.3