Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix create profile dialog
  • Loading branch information
gashcrumb committed Aug 1, 2013
1 parent 9872fec commit b4d61b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/fabric/html/fabricView.html
Expand Up @@ -239,7 +239,7 @@
</div>

<div modal="createProfileDialog">
<form name="createProfile" class="form-horizontal no-bottom-margin" ng-submit="doCreateProfile()">
<form name="createProfile" class="form-horizontal no-bottom-margin" ng-submit="doCreateProfile(newProfileName)">
<div class="modal-header"><h4>Create new Profile in Version {{version.id}}...</h4></div>
<div class="modal-body">
<label>Profile Name: </label>
Expand Down
3 changes: 2 additions & 1 deletion hawtio-web/src/main/webapp/app/fabric/js/fabricView.ts
Expand Up @@ -179,7 +179,8 @@ module Fabric {


// create profile dialog action
$scope.doCreateProfile = () => {
$scope.doCreateProfile = (newProfileName) => {
$scope.newProfileName = newProfileName;
$scope.createProfileDialog = false;
var parents = $scope.selectedParents.map(function(profile) {return profile.id});
createProfile(jolokia, $scope.activeVersionId, $scope.newProfileName, parents, function() {
Expand Down

0 comments on commit b4d61b7

Please sign in to comment.