forked from Mirrors/elk
fix: compose page error (#2360)
This commit is contained in:
parent
4b37d19f65
commit
6801ea6c2d
1 changed files with 7 additions and 7 deletions
|
@ -84,28 +84,28 @@ function deletePollOption(index: number) {
|
||||||
trimPollOptions()
|
trimPollOptions()
|
||||||
}
|
}
|
||||||
|
|
||||||
const expiresInOptions = [
|
const expiresInOptions = computed(() => [
|
||||||
{
|
{
|
||||||
seconds: 1 * 60 * 60,
|
seconds: 1 * 60 * 60,
|
||||||
label: t('time_ago_options.hour_future', 1),
|
label: isHydrated.value ? t('time_ago_options.hour_future', 1) : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
seconds: 2 * 60 * 60,
|
seconds: 2 * 60 * 60,
|
||||||
label: t('time_ago_options.hour_future', 2),
|
label: isHydrated.value ? t('time_ago_options.hour_future', 2) : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
seconds: 1 * 24 * 60 * 60,
|
seconds: 1 * 24 * 60 * 60,
|
||||||
label: t('time_ago_options.day_future', 1),
|
label: isHydrated.value ? t('time_ago_options.day_future', 1) : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
seconds: 2 * 24 * 60 * 60,
|
seconds: 2 * 24 * 60 * 60,
|
||||||
label: t('time_ago_options.day_future', 2),
|
label: isHydrated.value ? t('time_ago_options.day_future', 2) : '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
seconds: 7 * 24 * 60 * 60,
|
seconds: 7 * 24 * 60 * 60,
|
||||||
label: t('time_ago_options.day_future', 7),
|
label: isHydrated.value ? t('time_ago_options.day_future', 7) : '',
|
||||||
},
|
},
|
||||||
]
|
])
|
||||||
|
|
||||||
const expiresInDefaultOptionIndex = 2
|
const expiresInDefaultOptionIndex = 2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue