You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2018/09/24 13:16:11 UTC

qpid-dispatch git commit: DISPATCH-1109 Handling case where port is not specified

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 82aca48e2 -> b9ffcc649


DISPATCH-1109 Handling case where port is not specified


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/b9ffcc64
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/b9ffcc64
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/b9ffcc64

Branch: refs/heads/master
Commit: b9ffcc649bce80dfe8fb1b6e75c941ee2a0b7131
Parents: 82aca48
Author: Ernest Allen <ea...@redhat.com>
Authored: Mon Sep 24 09:15:48 2018 -0400
Committer: Ernest Allen <ea...@redhat.com>
Committed: Mon Sep 24 09:15:48 2018 -0400

----------------------------------------------------------------------
 console/stand-alone/plugin/html/qdrConnect.html | 4 ++--
 console/stand-alone/plugin/js/qdrSettings.js    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/b9ffcc64/console/stand-alone/plugin/html/qdrConnect.html
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/html/qdrConnect.html b/console/stand-alone/plugin/html/qdrConnect.html
index 7c31e38..0a3f35a 100644
--- a/console/stand-alone/plugin/html/qdrConnect.html
+++ b/console/stand-alone/plugin/html/qdrConnect.html
@@ -51,9 +51,9 @@ under the License.
                                 <input tabindex="1" id="address" type="text" ng-model="formEntity.address" placeholder="{{formEntity.address}}" name="address" autofocus="autofocus" class="ng-pristine ng-valid ng-valid-required"></div>
                         </div>
                         <div class="form-group">
-                            <label tabindex="-1" class="col-md-2 control-label" title="Port to connect to, by default 5673" for="port">Port: </label>
+                            <label tabindex="-1" class="col-md-2 control-label" title="Port to connect to" for="port">Port: </label>
                             <div class="col-md-6">
-                                <input tabindex="2" id="port" posint type="number" placeholder="{{formEntity.port}}" tooltip="Port to connect to, by default 5673" ng-model="formEntity.port" name="port" title="Ports to connect to, by default 5673">
+                                <input tabindex="2" id="port" posint type="number" placeholder="{{formEntity.port}}" tooltip="Port to connect to" ng-model="formEntity.port" name="port" title="Ports to connect to">
                                 <span ng-show="settings.port.$error.range">Must be 1 through 65535</span>
                             </div>
                         </div>

http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/b9ffcc64/console/stand-alone/plugin/js/qdrSettings.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrSettings.js b/console/stand-alone/plugin/js/qdrSettings.js
index 2453a95..1a432df 100644
--- a/console/stand-alone/plugin/js/qdrSettings.js
+++ b/console/stand-alone/plugin/js/qdrSettings.js
@@ -31,7 +31,7 @@ export class SettingsController {
 
     $scope.formEntity = angular.fromJson(localStorage[QDR_SETTINGS_KEY]) || {
       address: window.location.hostname,
-      port: Number(window.location.port),
+      port: Number(window.location.port) || 80,
       username: '',
       password: '',
       autostart: false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org