From fa121daf1da238b0ae89e79986592b72279cb781 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 19 Oct 2017 09:31:50 +0500 Subject: Adjusted to buffered commands --- web/app/view/dialog/SendCommandController.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'web/app/view/dialog') diff --git a/web/app/view/dialog/SendCommandController.js b/web/app/view/dialog/SendCommandController.js index 567be94..c635158 100644 --- a/web/app/view/dialog/SendCommandController.js +++ b/web/app/view/dialog/SendCommandController.js @@ -59,14 +59,13 @@ Ext.define('Traccar.view.dialog.SendCommandController', { } this.lookupReference('newCommandFields').setDisabled(command.getId() !== 0); - this.lookupReference('textChannelCheckBox').setDisabled(command.getId() !== 0 || !this.getView().online); this.lookupReference('sendButton').setDisabled(command.getId() === 0); }, onSendResult: function (options, success, response) { if (success) { this.closeView(); - Traccar.app.showToast(Strings.commandSent); + Traccar.app.showToast(response.status === 202 ? Strings.commandQueued : Strings.commandSent); } else { Traccar.app.showError(response); } -- cgit v1.2.3