Skip to content

Commit

Permalink
simplify assent/consent title
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasxsong committed Nov 4, 2024
1 parent 978f093 commit 397708c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ConsentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ onMounted(() => {
dialogVisible.value = true;
const acceptIcon = computed(() => (isSubmitting.value ? 'pi pi-spin pi-spinner mr-2' : 'pi pi-check mr-2'));
const header = props.consentType.includes('consent') ? `Consent` : `Assent`;
confirm.require({
group: 'consent',
header: props.consentType.includes('-es')
? `FORMULARIO DE ${_lowerCase(props.consentType).toUpperCase()}`
: `${_lowerCase(props.consentType).toUpperCase()} FORM`,
header: header,
icon: 'pi pi-question-circle',
acceptLabel: i18n.t('consentModal.acceptButton'),
acceptClass: 'bg-primary text-white border-none border-round p-2 hover:bg-red-900',
Expand Down

0 comments on commit 397708c

Please sign in to comment.