fix: compose page error (#2360)

pull/2350/head^2
Joaquín Sánchez 2023-08-23 12:33:26 +02:00 zatwierdzone przez GitHub
rodzic 4b37d19f65
commit 6801ea6c2d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -84,28 +84,28 @@ function deletePollOption(index: number) {
trimPollOptions()
}
const expiresInOptions = [
const expiresInOptions = computed(() => [
{
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,
label: t('time_ago_options.hour_future', 2),
label: isHydrated.value ? t('time_ago_options.hour_future', 2) : '',
},
{
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,
label: t('time_ago_options.day_future', 2),
label: isHydrated.value ? t('time_ago_options.day_future', 2) : '',
},
{
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