aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/SendCommandController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-10-19 09:31:50 +0500
committerAbyss777 <abyss@fox5.ru>2017-10-19 09:31:50 +0500
commitfa121daf1da238b0ae89e79986592b72279cb781 (patch)
tree043b912159d87047e8572a3e966a7e3355ea1775 /web/app/view/dialog/SendCommandController.js
parentb60127b12fa878db7aecf35109e42f57eed34fe3 (diff)
downloadtrackermap-web-fa121daf1da238b0ae89e79986592b72279cb781.tar.gz
trackermap-web-fa121daf1da238b0ae89e79986592b72279cb781.tar.bz2
trackermap-web-fa121daf1da238b0ae89e79986592b72279cb781.zip
Adjusted to buffered commands
Diffstat (limited to 'web/app/view/dialog/SendCommandController.js')
-rw-r--r--web/app/view/dialog/SendCommandController.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/app/view/dialog/SendCommandController.js b/web/app/view/dialog/SendCommandController.js
index 567be945..c6351587 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);
}