Skip to content

Commit

Permalink
Improve hostname and domain labels for join cluster init section (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanoScarpetta committed Mar 5, 2024
1 parent c2eccd5 commit 6cb07ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions core/ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@
"creating_cluster": "Creating cluster...",
"custom_routes": "Custom HTTP routes",
"custom_certificates": "Uploaded certificates",
"hostname": "Hostname",
"domain": "Domain",
"hostname_create": "Hostname",
"hostname_join": "Worker node hostname",
"domain_create": "Domain",
"domain_join": "Worker node domain",
"set_fqdn": "Set FQDN",
"review_node_fqdn_title": "Review node FQDN",
"review_node_fqdn_description": "Set the fully qualified domain name (FQDN) of this cluster node",
Expand Down
12 changes: 10 additions & 2 deletions core/ui/src/components/initialize-cluster/SetFqdn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,23 @@
></cv-skeleton-text>
<template v-else>
<cv-text-input
:label="$t('init.hostname')"
:label="
action === 'create'
? $t('init.hostname_create')
: $t('init.hostname_join')
"
v-model.trim="hostname"
:invalid-message="error.hostname"
:disabled="loading.getFqdn || loading.setFqdn"
ref="hostname"
>
</cv-text-input>
<cv-text-input
:label="$t('init.domain')"
:label="
action === 'create'
? $t('init.domain_create')
: $t('init.domain_join')
"
v-model.trim="domain"
placeholder="example.org"
:invalid-message="error.domain"
Expand Down

0 comments on commit 6cb07ee

Please sign in to comment.