From 8121b12386f3db82b863cd83cae782a2c8f307a4 Mon Sep 17 00:00:00 2001 From: dharini Date: Sun, 27 Feb 2022 16:02:53 -0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20simplify=20the=20way?= =?UTF-8?q?=20to=20pass=20doc=20links=20to=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/admin/app/components/form/host-catalog/aws/index.hbs | 4 ++-- ui/admin/app/components/form/host-catalog/azure/index.hbs | 8 ++++---- ui/admin/app/components/form/host-catalog/index.hbs | 2 -- ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs | 2 -- 4 files changed, 6 insertions(+), 10 deletions(-) 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 3e1f348b9..35473f2f6 100644 --- a/ui/admin/app/components/form/host-catalog/aws/index.hbs +++ b/ui/admin/app/components/form/host-catalog/aws/index.hbs @@ -138,7 +138,7 @@ @label={{t 'form.access_key_id.label'}} @helperText={{t 'form.access_key_id.help'}} @linkText={{t 'actions.learn-more'}} - @link={{doc-url @awsDoc}} + @link={{doc-url 'host-catalog.aws'}} readonly={{false}} /> @@ -149,7 +149,7 @@ @label={{t 'form.secret_access_key.label'}} @helperText={{t 'form.secret_access_key.help'}} @linkText={{t 'actions.learn-more'}} - @link={{doc-url @awsDoc}} + @link={{doc-url 'host-catalog.aws'}} readonly={{false}} /> diff --git a/ui/admin/app/components/form/host-catalog/azure/index.hbs b/ui/admin/app/components/form/host-catalog/azure/index.hbs index aa7adf492..7d29b41b1 100644 --- a/ui/admin/app/components/form/host-catalog/azure/index.hbs +++ b/ui/admin/app/components/form/host-catalog/azure/index.hbs @@ -131,7 +131,7 @@ @label={{t 'form.tenant_id.label'}} @helperText={{t 'form.tenant_id.help'}} @linkText={{t 'actions.learn-more'}} - @link={{doc-url @azureDoc}} + @link={{doc-url 'host-catalog.azure'}} readonly={{false}} /> @@ -142,7 +142,7 @@ @label={{t 'form.subscription_id.label'}} @helperText={{t 'form.subscription_id.help'}} @linkText={{t 'actions.learn-more'}} - @link={{doc-url @azureDoc}} + @link={{doc-url 'host-catalog.azure'}} readonly={{false}} /> @@ -153,7 +153,7 @@ @label={{t 'resources.host-catalog.form.azure_client_id.label'}} @helperText={{t 'resources.host-catalog.form.azure_client_id.help'}} @linkText={{t 'actions.learn-more'}} - @link={{doc-url @azureDoc}} + @link={{doc-url 'host-catalog.azure'}} readonly={{false}} /> @@ -164,7 +164,7 @@ @label={{t 'form.secret.label'}} @helperText={{t 'form.secret.help'}} @linkText={{t 'actions.learn-more'}} - @link={{doc-url @azureDoc}} + @link={{doc-url 'host-catalog.azure'}} readonly={{false}} /> diff --git a/ui/admin/app/components/form/host-catalog/index.hbs b/ui/admin/app/components/form/host-catalog/index.hbs index c92b7fb2f..90cebebc9 100644 --- a/ui/admin/app/components/form/host-catalog/index.hbs +++ b/ui/admin/app/components/form/host-catalog/index.hbs @@ -4,6 +4,4 @@ submit=@submit cancel=@cancel changeType=@changeType - azureDoc=@azureDoc - awsDoc=@awsDoc }} \ No newline at end of file diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs index 867766d09..68fad6fd1 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/new.hbs @@ -19,8 +19,6 @@ @submit={{route-action 'save' @model}} @cancel={{route-action 'cancel' @model}} @changeType={{route-action 'changeType'}} - @azureDoc='host-catalog.azure' - @awsDoc='host-catalog.aws' />