From b76bcf0ee7c37a0a82dd034866fff34f0bdfb611 Mon Sep 17 00:00:00 2001 From: Marcelo Rydel Date: Tue, 25 Jan 2022 09:13:36 -0300 Subject: [PATCH] fix(images): fix registryModal [EE-2426] (#6442) --- app/portainer/services/modal.service/prompt.ts | 2 +- app/portainer/services/registryModalService.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/portainer/services/modal.service/prompt.ts b/app/portainer/services/modal.service/prompt.ts index 89b1a8298..3521f7ae9 100644 --- a/app/portainer/services/modal.service/prompt.ts +++ b/app/portainer/services/modal.service/prompt.ts @@ -44,7 +44,7 @@ export function prompt(options: PromptOptions) { title: options.title, inputType: options.inputType, inputOptions: options.inputOptions, - buttons: confirmButtons(options.buttons), + buttons: options.buttons ? confirmButtons(options.buttons) : undefined, // casting is done because ts definition expects string=>any, but library code can emit different values, based on inputType callback: options.callback as (value: string) => void, value: options.value, diff --git a/app/portainer/services/registryModalService.js b/app/portainer/services/registryModalService.js index 04dbaa344..ad4793744 100644 --- a/app/portainer/services/registryModalService.js +++ b/app/portainer/services/registryModalService.js @@ -20,6 +20,8 @@ function ModalServiceFactory($q, ModalService, RegistryService) { const defaultValue = String(_.get(registryModel, 'Registry.Id', '0')); ModalService.selectRegistry({ + title: 'Which registry do you want to use?', + inputType: 'select', inputOptions: options, value: defaultValue, callback: (registryId) => {