Skip to content

Commit

Permalink
loadTree when destinations are added/removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanb committed May 8, 2013
1 parent 57b3a6b commit 75960fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hawtio-web/src/main/webapp/app/activemq/js/browse.ts
Expand Up @@ -113,7 +113,7 @@ module ActiveMQ {
angular.forEach(selectedItems, (item, idx) => {
var id = item.JMSMessageID;
if (id) {
var callback = (idx + 1 < selectedItems.length) ? intermediateResult : operationSuccess;
var callback = (idx + 1 < selectedItems.length) ? intermediateResult : moveSuccess;
jolokia.execute(mbean, operation, id, $scope.queueName, onSuccess(callback));
}
});
Expand Down Expand Up @@ -231,5 +231,10 @@ module ActiveMQ {
notification("success", $scope.message);
setTimeout(loadTable, 50);
}

function moveSuccess() {
operationSuccess();
$scope.workspace.loadTree();
}
}
}
2 changes: 2 additions & 0 deletions hawtio-web/src/main/webapp/app/activemq/js/destination.ts
Expand Up @@ -15,6 +15,7 @@ module ActiveMQ {
$scope.workspace.operationCounter += 1;
$scope.$apply();
notification("success", $scope.message);
$scope.workspace.loadTree();
}

function deleteSuccess() {
Expand All @@ -23,6 +24,7 @@ module ActiveMQ {
$scope.workspace.operationCounter += 1;
$scope.$apply();
notification("success", $scope.message);
$scope.workspace.loadTree();
}

function getBrokerMBean(jolokia) {
Expand Down

0 comments on commit 75960fe

Please sign in to comment.