refactor: 💡 simplify the way to pass doc links to components

This commit is contained in:
dharini committed 2022-02-27 16:02:53 -08:00
1 parent b4c109a28d
commit 8121b12386
4 files changed
+6 -10

No files matched your search

@@ -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}}
/>
@@ -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}}
/>
@@ -4,6 +4,4 @@
submit=@submit
cancel=@cancel
changeType=@changeType
azureDoc=@azureDoc
awsDoc=@awsDoc
}}
@@ -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'
/>
</page.body>