Skip to content

Commit

Permalink
fix: Add useFqdn to force using fqdn in vms
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedElmdary committed Jun 4, 2024
1 parent 8f6da60 commit cc46b89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
</input-tooltip>

<div :style="{ marginTop: '-10px' }">
<TfSelectionDetails disable-node-selection require-domain v-model="selectionDetails" />
<TfSelectionDetails disable-node-selection require-domain use-fqdn v-model="selectionDetails" />
</div>

<input-validator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default {
farm: Object as PropType<FarmInfo>,
hideTitle: Boolean,
status: String as PropType<ValidatorStatus>,
useFqdn: Boolean,
},
emits: {
"update:model-value": (domain?: DomainInfo) => true || domain,
Expand Down Expand Up @@ -175,7 +176,7 @@ export default {
});
const disableSelectedDomain = computed(() => enableCustomDomain.value && props.filters.ipv4 === true);
const useFQDN = computed(() => enableCustomDomain.value && props.filters.ipv4 === false);
const useFQDN = computed(() => enableCustomDomain.value && (props.useFqdn || props.filters.ipv4 === false));
const domain = computed<DomainInfo>(() => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
:hide-title="$props.disableNodeSelection"
v-model="domain"
v-model:status="domainStatus"
:use-fqdn="$props.useFqdn"
v-if="requireDomain"
/>
</VExpandTransition>
Expand Down Expand Up @@ -104,6 +105,7 @@ export default {
requireDomain: Boolean,
disableNodeSelection: { type: Boolean, default: () => false },
status: String as PropType<ValidatorStatus>,
useFqdn: Boolean,
},
emits: {
"update:model-value": (value: SelectionDetails) => true || value,
Expand Down

0 comments on commit cc46b89

Please sign in to comment.