Skip to content

Commit

Permalink
Remove "required" indicator from certain tool interface parameters
Browse files Browse the repository at this point in the history
- Remove the * required indicator from radio `FormSelect`s
  • Loading branch information
ahmedhamidawan committed Feb 19, 2023
1 parent c3148a2 commit 5a9a12b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/Form/FormElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ const isHiddenType = computed(
["hidden", "hidden_data", "baseurl"].includes(props.type ?? "") ||
(props.attributes && props.attributes.titleonly)
);
const isRadioSelectionType = computed(() => props.type === "select" && attrs.value["display"] == "radio");
const collapseText = computed(() => (collapsed.value ? props.collapsedEnableText : props.collapsedDisableText));
const connectText = computed(() => (connected.value ? props.connectedEnableText : props.connectedDisableText));
Expand Down Expand Up @@ -203,7 +204,7 @@ const isOptional = computed(() => !isRequired.value && attrs.value["optional"] !
<span v-else-if="props.title" class="ui-form-title-text">{{ props.title }}</span>

<span
v-if="isRequired && isRequiredType && props.title"
v-if="isRequired && isRequiredType && props.title && !isRadioSelectionType"
v-b-tooltip.hover
class="ui-form-title-star"
title="required"
Expand Down

0 comments on commit 5a9a12b

Please sign in to comment.