enh: en dash

Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit ce3119ef07)
This commit is contained in:
Christopher Ng 2023-08-08 15:47:29 -07:00 committed by Andy Scherzinger
parent c71db8aada
commit f6a84410ed

View file

@ -36,7 +36,7 @@
<template #icon>
<CloseCircleOutline :size="20" />
</template>
{{ t('files_reminders', 'Clear reminder') }} {{ getDateString(dueDate) }}
{{ t('files_reminders', 'Clear reminder') }} {{ getDateString(dueDate) }}
</NcActionButton>
<NcActionSeparator />
@ -45,7 +45,7 @@
:key="label"
:aria-label="ariaLabel"
@click="action">
{{ label }} {{ dateString }}
{{ label }} {{ dateString }}
</NcActionButton>
<NcActionSeparator />
@ -180,14 +180,14 @@ export default Vue.extend({
},
clearAriaLabel(): string {
return `${t('files_reminders', 'Clear reminder')} ${getVerboseDateString(this.dueDate as Date)}`
return `${t('files_reminders', 'Clear reminder')} ${getVerboseDateString(this.dueDate as Date)}`
},
customAriaLabel(): null | string {
if (this.customDueDate === '') {
return null
}
return `${t('files_reminders', 'Set reminder at custom date & time')} ${getVerboseDateString(this.customDueDate)}`
return `${t('files_reminders', 'Set reminder at custom date & time')} ${getVerboseDateString(this.customDueDate)}`
},
options(): ReminderOption[] {
@ -195,7 +195,7 @@ export default Vue.extend({
const dateTime = getDateTime(option.dateTimePreset)
return {
...option,
ariaLabel: `${option.ariaLabel} ${getVerboseDateString(dateTime)}`,
ariaLabel: `${option.ariaLabel} ${getVerboseDateString(dateTime)}`,
dateString: getDateString(dateTime),
action: () => this.set(dateTime),
}