mirror of https://github.com/apache/lucene.git
SOLR-8137 Use swapCorelist rather than otherCorelist
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1707287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c7deed16f0
commit
82e422080d
|
@ -36,15 +36,15 @@ solrAdminApp.controller('CoreAdminController',
|
|||
}
|
||||
$scope.core = cores[$scope.selectedCore];
|
||||
$scope.corelist = [];
|
||||
$scope.otherCorelist = [];
|
||||
$scope.swapCorelist = [];
|
||||
for (var core in cores) {
|
||||
$scope.corelist.push(cores[core]);
|
||||
if (cores[core] != $scope.core) {
|
||||
$scope.otherCorelist.push(cores[core]);
|
||||
$scope.swapCorelist.push(cores[core]);
|
||||
}
|
||||
}
|
||||
if ($scope.otherCorelist.length>0) {
|
||||
$scope.swapOther = $scope.otherCorelist[0].name;
|
||||
if ($scope.swapCorelist.length>0) {
|
||||
$scope.swapOther = $scope.swapCorelist[0].name;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -109,7 +109,7 @@ limitations under the License.
|
|||
<input type="text" id="swap_core" name="core" ng-model="selectedCore" readonly="readonly"></p>
|
||||
|
||||
<p class="clearfix"><label for="swap_other">and:</label>
|
||||
<select name="other" ng-model="swapOther" ng-options="core.name as core.name for core in otherCorelist" class="other">
|
||||
<select name="other" ng-model="swapOther" ng-options="core.name as core.name for core in swapCorelist" class="other">
|
||||
</select></p>
|
||||
|
||||
<p class="clearfix note error" ng-show="swapMessage">
|
||||
|
|
Loading…
Reference in New Issue