Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added are you sure dialogs to delete / purge of queues
  • Loading branch information
jstrachan committed May 2, 2013
1 parent 713f091 commit ff33da1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
24 changes: 22 additions & 2 deletions hawtio-web/src/main/webapp/app/activemq/html/deleteQueue.html
Expand Up @@ -11,15 +11,35 @@
<div class="row-fluid">
<div class="span4">
<div class="control-group">
<button type="submit" class="btn btn-warning" ng-click="deleteDestination()">Delete Queue '{{name()}}'</button>
<button type="submit" class="btn btn-warning" ng-click="deleteDialog = true">Delete Queue '{{name()}}'</button>
<label>This will remove the queue completely.</label>
</div>
</div>
<div class="span4">
<div class="control-group">
<button type="submit" class="btn btn-warning" ng-click="purgeDestination()">Purge Queue '{{name()}}'</button>
<button type="submit" class="btn btn-warning" ng-click="purgeDialog = true">Purge Queue '{{name()}}'</button>
<label>Purges all the current messages on the queue.</label>
</div>
</div>
</div>

<div hawtio-confirm-dialog="deleteDialog"
ok-button-text="Delete"
on-ok="deleteDestination()">
<div class="dialog-body">
<p>You are about to delete the <b>{{name()}}</b> queue</p>
<p>This operation cannot be undone so please be careful.</p>
</div>
</div>

<div hawtio-confirm-dialog="purgeDialog"
ok-button-text="Purge"
on-ok="purgeDestination()">
<div class="dialog-body">
<p>You are about to purge the <b>{{name()}}</b> queue</p>
<p>This operation cannot be undone so please be careful.</p>
</div>
</div>


</div>
3 changes: 3 additions & 0 deletions hawtio-web/src/main/webapp/app/activemq/js/destination.ts
Expand Up @@ -3,6 +3,9 @@ module ActiveMQ {
$scope.workspace = workspace;
$scope.message = "";

$scope.deleteDialog = false;
$scope.purgeDialog = false;

$scope.$watch('workspace.selection', function () {
workspace.moveIfViewInvalid();
});
Expand Down

0 comments on commit ff33da1

Please sign in to comment.