Created
November 28, 2013 14:50
-
-
Save dejanb/7693089 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/hawtio-web/src/main/webapp/app/activemq/html/durableSubscribers.html b/hawtio-web/src/main/webapp/app/activemq/html/durableSubscribers.html | |
| index e4df95b..02bbae0 100644 | |
| --- a/hawtio-web/src/main/webapp/app/activemq/html/durableSubscribers.html | |
| +++ b/hawtio-web/src/main/webapp/app/activemq/html/durableSubscribers.html | |
| @@ -43,4 +43,48 @@ | |
| </form> | |
| </div> | |
| + <div hawtio-slideout="showSubscriberDetails" title="Details"> | |
| + <div class="dialog-body"> | |
| + | |
| + <div class="row-fluid"> | |
| + <div class="pull-right"> | |
| + <form class="form-horizontal no-bottom-margin"> | |
| + | |
| +<!-- <button class="btn btn-danger" ng-disabled="!gridOptions.selectedItems.length" | |
| + ng-click="deleteDialog = true" | |
| + title="Delete the selected messages"> | |
| + <i class="icon-remove"></i> Delete | |
| + </button>--> | |
| + | |
| + <button class="btn" ng-click="showSubscriberDetails = !showSubscriberDetails" title="Close this dialog"> | |
| + <i class="icon-remove"></i> Close | |
| + </button> | |
| + | |
| + </form> | |
| + </div> | |
| + </div> | |
| + | |
| + <div class="row-fluid"> | |
| + <div class="expandable-body well"> | |
| + <table class="table table-condensed table-striped"> | |
| + <thead> | |
| + <tr> | |
| + <th>Property</th> | |
| + <th>Value</th> | |
| + </tr> | |
| + </thead> | |
| + <tbody> | |
| + <tr> | |
| + <td class="property-name">Subscription Name</td> | |
| + <td class="property-value">{{subscriberName}}</td> | |
| + </tr> | |
| + </tbody> | |
| + </table> | |
| + </div> | |
| + </div> | |
| + | |
| + </div> | |
| + | |
| + </div> | |
| + | |
| </div> | |
| \ No newline at end of file | |
| diff --git a/hawtio-web/src/main/webapp/app/activemq/js/durableSubscriber.ts b/hawtio-web/src/main/webapp/app/activemq/js/durableSubscriber.ts | |
| index 2f4d981..ea9e0c3 100644 | |
| --- a/hawtio-web/src/main/webapp/app/activemq/js/durableSubscriber.ts | |
| +++ b/hawtio-web/src/main/webapp/app/activemq/js/durableSubscriber.ts | |
| @@ -15,6 +15,8 @@ module ActiveMQ { | |
| $scope.subscriberName = ''; | |
| $scope.subSelector = ''; | |
| + $scope.entity = {}; | |
| + | |
| $scope.gridOptions = { | |
| selectedItems: [], | |
| data: 'durableSubscribers', | |
| @@ -26,7 +28,7 @@ module ActiveMQ { | |
| filterOptions: { | |
| filterText: '' | |
| }, | |
| - selectWithCheckboxOnly: true, | |
| + selectWithCheckboxOnly: false, | |
| showSelectionCheckbox: false, | |
| maintainColumnRatios: false, | |
| columnDefs: [ | |
| @@ -38,6 +40,7 @@ module ActiveMQ { | |
| { | |
| field: 'consumerId', | |
| displayName: 'Consumer ID', | |
| + cellTemplate: '<div class="ngCellText"><a ng-click="openSubscriberDialog(row)">{{row.entity.consumerId}}</a></div>', | |
| width: '45%' | |
| }, | |
| { | |
| @@ -48,6 +51,8 @@ module ActiveMQ { | |
| ] | |
| }; | |
| + $scope.showSubscriberDetails = false; | |
| + | |
| $scope.doCreateSubscriber = (clientId, subscriberName, topicName, subSelector) => { | |
| $scope.createSubscriberDialog.close(); | |
| $scope.clientId = clientId; | |
| @@ -80,6 +85,15 @@ module ActiveMQ { | |
| } | |
| }; | |
| + $scope.openSubscriberDialog = (subscriber) => { | |
| + jolokia.request({type: "read", mbean: subscriber.entity._id}, onSuccess( (response) => { | |
| + $scope.subscriberName = response.value["SubscriptionName"]; | |
| + $scope.showSubscriberDetails = true; | |
| + })); | |
| + }; | |
| + | |
| + | |
| + | |
| $scope.$watch('workspace.selection', function () { | |
| if (workspace.moveIfViewInvalid()) return; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment