Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
190 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
hawtio-web/src/main/webapp/app/fabric/html/assignProfile.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<div class="controller-section" ng-controller="Fabric.AssignProfileController"> | ||
|
||
<div class="row-fluid"> | ||
<div class="span12"> | ||
Select the containers to assign "{{profileId}}" from version "{{versionId}}" to: | ||
</div> | ||
</div> | ||
|
||
<div class="row-fluid"> | ||
<div class="span6"> | ||
|
||
<div class="section-header"> | ||
|
||
<div class="selection-controls"> | ||
<i class="icon-circle-blank clickable" title="Clear Selection" ng-click="setActiveContainer(null)"></i> | ||
<i class="icon-circle clickable" title="Select All" ng-click="selectAllContainers()"></i> | ||
</div> | ||
|
||
<div class="section-filter"> | ||
<input type="text" class="search-query" placeholder="Filter..." ng-model="containerIdFilter"> | ||
<i class="icon-remove clickable" title="Clear Filter" ng-click="containerIdFilter = ''"></i> | ||
</div> | ||
</div> | ||
|
||
<div fabric-container-list at-version="versionId" without-profile="profileId"></div> | ||
</div> | ||
|
||
<div class="span6"> | ||
<div class="row-fluid"> | ||
<h6>Selected Containers</h6> | ||
<ul class="zebra-list"> | ||
<li ng-repeat="id in selectedContainerIds">{{id}}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
</div> |
43 changes: 0 additions & 43 deletions
43
hawtio-web/src/main/webapp/app/fabric/html/assignProfiles.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module Fabric { | ||
|
||
export function AssignProfileController($scope, jolokia, $location, $routeParams) { | ||
|
||
$scope.profileId = $routeParams['pid']; | ||
$scope.versionId = $routeParams['vid']; | ||
|
||
var valid = true; | ||
|
||
if (Core.isBlank($scope.profileId)) { | ||
log.warn("No profile ID specified, redirecting to Fabric management view"); | ||
valid = false; | ||
} | ||
|
||
if (Core.isBlank($scope.versionId)) { | ||
log.warn("No version ID specified, redirecting to Fabric management view"); | ||
valid = false; | ||
} | ||
|
||
if (!valid) { | ||
$location.path("/fabric/view"); | ||
} | ||
|
||
$scope.$on('$routeChangeSuccess', () => { | ||
log.debug("RouteParams: ", $routeParams); | ||
log.debug("Scope: ", $scope); | ||
}); | ||
|
||
$scope.$watch('selectedContainerIds', (newValue, oldValue) => { | ||
log.debug("selected containers: ", newValue); | ||
}, true); | ||
|
||
} | ||
|
||
} |
145 changes: 0 additions & 145 deletions
145
hawtio-web/src/main/webapp/app/fabric/js/assignProfiles.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters