Skip to content

Commit

Permalink
Avoid having the number field appended to the container name by delet…
Browse files Browse the repository at this point in the history
…ing it, fixes #387
  • Loading branch information
gashcrumb committed Jul 11, 2013
1 parent b61a195 commit 016b0d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hawtio-web/src/main/webapp/app/fabric/js/createContainer.ts
Expand Up @@ -163,6 +163,10 @@ module Fabric {

delete json.saveJmxCredentials;

if ( json.number === 1 ) {
delete json.number;
}

json['version'] = $scope.selectedVersion.id;
if ($scope.selectedProfiles.length > 0) {
json['profiles'] = $scope.selectedProfiles.map((p) => { return p.id; });
Expand Down

0 comments on commit 016b0d4

Please sign in to comment.