feat(templates): replace volume selector with typeahead (#3371)

pull/3386/head
Anthony Lapenna 2019-11-20 12:18:27 +13:00 committed by GitHub
parent 4239db7b34
commit b8be795505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -234,10 +234,13 @@
<!-- volume -->
<div class="input-group input-group-sm col-sm-6" ng-if="volume.type === 'volume'">
<span class="input-group-addon">volume</span>
<select class="form-control" ng-model="volume.bind">
<option selected disabled hidden value="">Select a volume</option>
<option ng-repeat="vol in availableVolumes" ng-value="vol.Name">{{ vol.Name|truncate:30}}</option>
</select>
<input
type="text" ng-model="volume.bind"
id="container_volumes" class="form-control"
placeholder="Select a volume"
typeahead-min-length="0"
uib-typeahead="vol as vol.Name for vol in availableVolumes | filter:$viewValue"
/>
</div>
<!-- !volume -->
<!-- bind -->