From bceb19109b31098a51828f0c52865a5eaa252bf6 Mon Sep 17 00:00:00 2001 From: Sharon Gratch Date: Wed, 20 Sep 2023 17:51:48 +0300 Subject: [PATCH] Add region and project fields to the OpenStack Credentials view page As a followup to fix https://github.com/kubev2v/forklift-console-plugin/pull/730, need to add the Region and Project fields to the OpenStack Credentials view mode dialog as well. Signed-off-by: Sharon Gratch --- .../list/OpenstackCredentialsList.tsx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/list/OpenstackCredentialsList.tsx b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/list/OpenstackCredentialsList.tsx index 9a3c7e660..52d2d1d02 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/list/OpenstackCredentialsList.tsx +++ b/packages/forklift-console-plugin/src/modules/Providers/views/details/components/CredentialsSection/components/list/OpenstackCredentialsList.tsx @@ -64,6 +64,10 @@ export const OpenstackCredentialsList: React.FC = ({ secret, label: t('Project ID'), description: t('OpenStack project ID for token credentials.'), }, + regionName: { + label: t('Region'), + description: t('OpenStack region.'), + }, insecureSkipVerify: { label: t('Skip certificate validation'), description: t("If true, the provider's REST API TLS certificate won't be validated."), @@ -89,6 +93,10 @@ export const OpenstackCredentialsList: React.FC = ({ secret, label: t('Username'), description: t('OpenStack REST API user name.'), }, + regionName: { + label: t('Region'), + description: t('OpenStack region.'), + }, projectName: { label: t('Project'), description: t('OpenStack project for token credentials.'), @@ -122,6 +130,14 @@ export const OpenstackCredentialsList: React.FC = ({ secret, label: t('Application credential secret'), description: t('OpenStack REST API application credential secret.'), }, + regionName: { + label: t('Region'), + description: t('OpenStack region.'), + }, + projectName: { + label: t('Project'), + description: t('OpenStack project.'), + }, insecureSkipVerify: { label: t('Skip certificate validation'), description: t("If true, the provider's REST API TLS certificate won't be validated."), @@ -151,6 +167,14 @@ export const OpenstackCredentialsList: React.FC = ({ secret, label: t('Username'), description: t('OpenStack REST API user name.'), }, + regionName: { + label: t('Region'), + description: t('OpenStack region.'), + }, + projectName: { + label: t('Project'), + description: t('OpenStack project.'), + }, domainName: { label: t('Domain'), description: t('OpenStack domain for application credential credentials.'),