mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 11:19:40 +02:00
feat(app): remove autocomplete on registry selector
This commit is contained in:
parent
06c63899b2
commit
97ec2ddd62
8 changed files with 4 additions and 13 deletions
|
@ -3,11 +3,10 @@ import _ from 'lodash-es';
|
|||
|
||||
class porImageRegistryController {
|
||||
/* @ngInject */
|
||||
constructor($async, RegistryService, DockerHubService, ImageService, Notifications) {
|
||||
constructor($async, RegistryService, DockerHubService, Notifications) {
|
||||
this.$async = $async;
|
||||
this.RegistryService = RegistryService;
|
||||
this.DockerHubService = DockerHubService;
|
||||
this.ImageService = ImageService;
|
||||
this.Notifications = Notifications;
|
||||
|
||||
this.onInit = this.onInit.bind(this);
|
||||
|
@ -15,12 +14,10 @@ class porImageRegistryController {
|
|||
|
||||
async onInit() {
|
||||
try {
|
||||
const [registries, dockerhub, availableImages] = await Promise.all([
|
||||
const [registries, dockerhub] = await Promise.all([
|
||||
this.RegistryService.registries(),
|
||||
this.DockerHubService.dockerhub(),
|
||||
this.autoComplete ? this.ImageService.images() : []
|
||||
]);
|
||||
this.availableImages = this.ImageService.getUniqueTagListFromImages(availableImages);
|
||||
this.availableRegistries = _.concat(dockerhub, registries);
|
||||
|
||||
const id = this.model.Registry.Id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue