Skip to content

Commit

Permalink
Adds a persistent hint to add more detail for other supplies.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Sep 29, 2022
1 parent ac85bcc commit 9f075af
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
clearable
:menu-props="{ offsetY: true, lazy: true, zIndex: 4 }"
:attach="$attrs.id ? `#${$attrs.id}` : '.resources-needed-container'"
:hint="hint"
persistent-hint
/>
</div>

Expand Down Expand Up @@ -56,9 +58,16 @@
value: ResourcesNeededTypes[key],
}));
},
hint() {
return this.value.includes(ResourcesNeededTypes.OTHER_SUPPLIES)
? this.$tr('furtherExplanation')
: '';
},
},
$trs: {
resourcesNeededLabel: 'Requirements',
furtherExplanation:
"Please add to the 'Description' field any additional supplies learners will need in order to use this resource",
},
};
Expand Down

0 comments on commit 9f075af

Please sign in to comment.