Merge pull request #960 from hashicorp/chore-update-to-plugin

chore: 🤖 updates to labels
This commit is contained in:
Dharini Jeeva authored and GitHub committed 2022-02-15 11:50:08 -08:00
commit 5d2e70ed8d
11 files changed
+36 -79

No files matched your search

+8 -32
View File
@@ -84,19 +84,15 @@ host-catalog:
title: Welcome to Host Catalogs
actions:
delete: Delete Host Catalog
help:
static: Provide a list of hosts and host sets with static addresses
dynamic: Automate discovery of target hosts and services on Azure or AWS
types:
static:
label: Static
help: Provide a list of hosts and host sets with static addresses
unknown:
label: Unknown
aws:
label: AWS
azure:
label: Azure
dynamic:
label: Dynamic
help: Automate discovery of target hosts and services on Azure or AWS
static: Static
unknown: Plugin
aws: AWS
azure: Azure
dynamic: Dynamic
host-set:
title: Host Set
title_plural: Host Sets
@@ -121,16 +117,6 @@ host-set:
add-none:
title: No Hosts Available
description: No hosts available for selection.
types:
static:
label: Static
help: Provide a list of hosts and host sets with static addresses
unknown:
label: Unknown
aws:
label: AWS
azure:
label: Azure
host:
title: Host
title_plural: Hosts
@@ -148,16 +134,6 @@ host:
add: Add Host
create: New Host
delete: Delete Host
types:
static:
label: Static
help: Provide a list of hosts and host sets with static addresses
unknown:
label: Unknown
aws:
label: AWS
azure:
label: Azure
session:
title: Session
title_plural: Sessions
@@ -57,15 +57,15 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.static.label'}}
@label={{t 'resources.host-catalog.types.static'}}
@value='static'
@helperText={{t 'resources.host-catalog.types.static.help'}}
@helperText={{t 'resources.host-catalog.help.static'}}
@layout='wide'
/>
<radioGroup.card
@label={{t 'resources.host-catalog.types.dynamic.label'}}
@label={{t 'resources.host-catalog.types.dynamic'}}
@value='plugin'
@helperText={{t 'resources.host-catalog.types.dynamic.help'}}
@helperText={{t 'resources.host-catalog.help.dynamic'}}
@layout='wide'
/>
</form.radioGroup>
@@ -91,13 +91,13 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.aws.label'}}
@label={{t 'resources.host-catalog.types.aws'}}
@value='aws'
@layout='tile'
@icon='flight-icons/svg/aws-color-16'
/>
<radioGroup.card
@label={{t 'resources.host-catalog.types.azure.label'}}
@label={{t 'resources.host-catalog.types.azure'}}
@value='azure'
@layout='tile'
@icon='flight-icons/svg/azure-color-16'
@@ -117,7 +117,7 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.aws.label'}}
@label={{t 'resources.host-catalog.types.aws'}}
@value='aws'
@layout='tile'
@icon='flight-icons/svg/aws-color-16'
@@ -57,15 +57,15 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.static.label'}}
@label={{t 'resources.host-catalog.types.static'}}
@value='static'
@helperText={{t 'resources.host-catalog.types.static.help'}}
@helperText={{t 'resources.host-catalog.help.static'}}
@layout='wide'
/>
<radioGroup.card
@label={{t 'resources.host-catalog.types.dynamic.label'}}
@label={{t 'resources.host-catalog.types.dynamic'}}
@value='plugin'
@helperText={{t 'resources.host-catalog.types.dynamic.help'}}
@helperText={{t 'resources.host-catalog.help.dynamic'}}
@layout='wide'
/>
</form.radioGroup>
@@ -90,13 +90,13 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.aws.label'}}
@label={{t 'resources.host-catalog.types.aws'}}
@value='aws'
@layout='tile'
@icon='flight-icons/svg/aws-color-16'
/>
<radioGroup.card
@label={{t 'resources.host-catalog.types.azure.label'}}
@label={{t 'resources.host-catalog.types.azure'}}
@value='azure'
@layout='tile'
@icon='flight-icons/svg/azure-color-16'
@@ -118,7 +118,7 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.azure.label'}}
@label={{t 'resources.host-catalog.types.azure'}}
@value='azure'
@layout='tile'
@icon='flight-icons/svg/azure-color-16'
@@ -57,15 +57,15 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.static.label'}}
@label={{t 'resources.host-catalog.types.static'}}
@value='static'
@helperText={{t 'resources.host-catalog.types.static.help'}}
@helperText={{t 'resources.host-catalog.help.static'}}
@layout='wide'
/>
<radioGroup.card
@label={{t 'resources.host-catalog.types.dynamic.label'}}
@label={{t 'resources.host-catalog.types.dynamic'}}
@value='plugin'
@helperText={{t 'resources.host-catalog.types.dynamic.help'}}
@helperText={{t 'resources.host-catalog.help.dynamic'}}
@layout='wide'
/>
</form.radioGroup>
@@ -92,12 +92,12 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-catalog.types.aws.label'}}
@label={{t 'resources.host-catalog.types.aws'}}
@value='aws'
@layout='tile'
/>
<radioGroup.card
@label={{t 'resources.host-catalog.types.azure.label'}}
@label={{t 'resources.host-catalog.types.azure'}}
@value='azure'
@layout='tile'
/>
@@ -65,7 +65,7 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-set.types.aws.label'}}
@label={{t 'resources.host-catalog.types.aws'}}
@value={{@model.compositeType}}
@layout='tile'
@icon='flight-icons/svg/aws-color-16'
@@ -65,7 +65,7 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host-set.types.azure.label'}}
@label={{t 'resources.host-catalog.types.azure'}}
@value={{@model.compositeType}}
@layout='tile'
@icon='flight-icons/svg/azure-color-16'
@@ -63,7 +63,7 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host.types.aws.label'}}
@label={{t 'resources.host-catalog.types.aws'}}
@value={{@model.compositeType}}
@layout='tile'
@icon={{concat 'flight-icons/svg/' @model.compositeType '-color-16'}}
@@ -63,7 +63,7 @@
as |radioGroup|
>
<radioGroup.card
@label={{t 'resources.host.types.azure.label'}}
@label={{t 'resources.host-catalog.types.azure'}}
@value={{@model.compositeType}}
@layout='tile'
@icon={{concat 'flight-icons/svg/' @model.compositeType '-color-16'}}
@@ -1,15 +1,15 @@
{{#if @model.isStatic}}
<Rose::Badge>
{{t (concat 'resources.host-catalog.types.' @model.compositeType '.label')}}
{{t (concat 'resources.host-catalog.types.' @model.compositeType)}}
</Rose::Badge>
{{else if @model.isUnknown}}
<Rose::Badge>
{{t (concat 'resources.host-catalog.types.' @model.compositeType '.label')}}
{{t (concat 'resources.host-catalog.types.' @model.compositeType)}}
</Rose::Badge>
{{else}}
<Rose::Badge
@icon={{concat 'flight-icons/svg/' @model.compositeType '-color-16'}}
>
{{t (concat 'resources.host-catalog.types.' @model.compositeType '.label')}}
{{t (concat 'resources.host-catalog.types.' @model.compositeType)}}
</Rose::Badge>
{{/if}}
@@ -18,7 +18,6 @@ export default class ScopesScopeHostCatalogsHostCatalogHostSetsNewRoute extends
if (this.currentModel?.isNew) {
this.currentModel.rollbackAttributes();
}
console.log('typedwed', compositeType);
return this.store.createRecord('host-set', {
compositeType,
host_catalog_id,
@@ -27,25 +27,7 @@
<p>{{host.description}}</p>
</row.headerCell>
<row.cell>
{{#if host.isStatic}}
<Rose::Badge>
{{t
(concat 'resources.host.types.' host.compositeType '.label')
}}
</Rose::Badge>
{{else}}
<Rose::Badge
@icon={{concat
'flight-icons/svg/'
host.compositeType
'-color-16'
}}
>
{{t
(concat 'resources.host.types.' host.compositeType '.label')
}}
</Rose::Badge>
{{/if}}
<HostCatalogTypeBadge @model={{host}} />
</row.cell>
<row.cell>
<Copyable