Skip to content

Commit

Permalink
Fix #675
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Oct 24, 2013
1 parent 905986a commit 6ef7c3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -34,7 +34,7 @@ <h2 class="inline">Edit {{profileId}} Features</h2>
<p ng-show="selectedRepoRepos && selectedRepoRepos.length > 0">
<h6>Feature Repositories</h6>
<ul>
<li style="display: block" ng-repeat="repo in selectedRepoRepos">{{repo}}</li>
<li style="display: block" ng-repeat="repo in selectedRepoRepos track by $index">{{repo}}</li>
</ul>

</p>
Expand Down
7 changes: 7 additions & 0 deletions hawtio-web/src/main/webapp/app/fabric/js/editFeatures.ts
Expand Up @@ -87,7 +87,14 @@ module Fabric {
if (newValue !== oldValue) {
$scope.selectedRepoName = $scope.selectedRepoJson.name;
$scope.selectedRepoRepos = $scope.selectedRepoJson.repository;
if (!angular.isArray($scope.selectedRepoRepos)) {
$scope.selectedRepoRepos = [$scope.selectedRepoRepos];
}
Logger.info("selectedRepoRepos: ", $scope.selectedRepoRepos);
$scope.selectedRepoFeatures = $scope.selectedRepoJson.feature;
if (!angular.isArray($scope.selectedRepoFeatures)) {
$scope.selectedRepoFeatures = [$scope.selectedRepoFeatures];
}
}
});

Expand Down

0 comments on commit 6ef7c3f

Please sign in to comment.