aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/dialog/SendCommandController.js
diff options
context:
space:
mode:
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);
}