From aed6efe565c73ee92fab4cb9ee8cae41fde58eaa Mon Sep 17 00:00:00 2001 From: dharini Date: Wed, 2 Feb 2022 14:39:08 -0800 Subject: [PATCH] add translations --- addons/core/translations/form/en-us.yaml | 10 ++++++ .../form/host-catalog/aws/index.hbs | 30 +++++------------ .../form/host-catalog/azure/index.hbs | 31 ++++++----------- .../components/form/host-catalog/index.hbs | 33 +------------------ .../form/host-catalog/static/index.hbs | 5 +-- 5 files changed, 33 insertions(+), 76 deletions(-) diff --git a/addons/core/translations/form/en-us.yaml b/addons/core/translations/form/en-us.yaml index 05105fbac..87beceb23 100644 --- a/addons/core/translations/form/en-us.yaml +++ b/addons/core/translations/form/en-us.yaml @@ -118,3 +118,13 @@ callback_url: filter: label: Filter help: A boolean expression defining a filter run against the provided information. +tenant_id: + label: Tenant ID +subscription_id: + label: Subscription ID +access_key_id: + label: Access Key ID +secret_access_key: + label: Secret Access Key +region: + label: Region \ No newline at end of file diff --git a/ui/admin/app/components/form/host-catalog/aws/index.hbs b/ui/admin/app/components/form/host-catalog/aws/index.hbs index d00fa198b..f9f02515f 100644 --- a/ui/admin/app/components/form/host-catalog/aws/index.hbs +++ b/ui/admin/app/components/form/host-catalog/aws/index.hbs @@ -13,6 +13,7 @@ @label={{t 'form.name.label'}} @helperText={{t 'form.name.help'}} @error={{@model.errors.name}} + disabled={{@model.isSaving}} readonly={{false}} as |field| > @@ -81,16 +82,18 @@ as |radioGroup| > @@ -106,10 +109,11 @@ as |radioGroup| > @@ -119,27 +123,11 @@ - {{!-- - - --}} - {{#if (can 'save model' @model)}} @@ -81,16 +82,18 @@ as |radioGroup| > @@ -106,10 +109,11 @@ as |radioGroup| > @@ -119,27 +123,11 @@ - {{!-- - - --}} - {{#if (can 'save model' @model)}} {{/if}} + \ No newline at end of file diff --git a/ui/admin/app/components/form/host-catalog/index.hbs b/ui/admin/app/components/form/host-catalog/index.hbs index def897e50..90cebebc9 100644 --- a/ui/admin/app/components/form/host-catalog/index.hbs +++ b/ui/admin/app/components/form/host-catalog/index.hbs @@ -4,35 +4,4 @@ submit=@submit cancel=@cancel changeType=@changeType -}} - -{{!-- {{#if @model.isStatic}} - {{component - (concat 'form/host-catalog/' @model.type) - model=@model - submit=@submit - cancel=@cancel - form=form - toggleType=this.toggleType - showDynamicPlugins=this.showDynamicPlugins - }} -{{else if @model.isPlugin}} - Model is plugin - {{#if @model.isAWS}} - Model is Aws - {{else if @model.isAzure}} - Model is Azure - {{/if}} -{{/if}} --}} - -{{!-- {{#if @model.type}} - {{component - (concat 'form/auth-method/' @model.type) - model=@model - submit=@submit - cancel=@cancel - removeItemByIndex=@removeItemByIndex - addStringItem=@addStringItem - addAccountClaimMapItem=@addAccountClaimMapItem - }} -{{/if}} --}} \ No newline at end of file +}} \ No newline at end of file diff --git a/ui/admin/app/components/form/host-catalog/static/index.hbs b/ui/admin/app/components/form/host-catalog/static/index.hbs index 50adcf87f..caac65a1d 100644 --- a/ui/admin/app/components/form/host-catalog/static/index.hbs +++ b/ui/admin/app/components/form/host-catalog/static/index.hbs @@ -13,6 +13,7 @@ @label={{t 'form.name.label'}} @helperText={{t 'form.name.help'}} @error={{@model.errors.name}} + disabled={{@model.isSaving}} readonly={{false}} as |field| > @@ -82,13 +83,13 @@ as |radioGroup| >