mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 22:56:09 +09:00
fix: disable enabling notifications if user needs to re-login
This commit is contained in:
parent
80ad2ab607
commit
d7236910a5
@ -6,6 +6,7 @@ defineProps<{
|
||||
}>()
|
||||
|
||||
defineEmits(['hide', 'subscribe'])
|
||||
const isLegacyAccount = computed(() => !currentUser.value?.vapidKey)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -32,7 +33,7 @@ defineEmits(['hide', 'subscribe'])
|
||||
btn-outline rounded-full font-bold py4 flex="~ gap2 center" m5
|
||||
type="button"
|
||||
:class="busy ? 'border-transparent' : null"
|
||||
:disabled="busy"
|
||||
:disabled="busy || isLegacyAccount"
|
||||
@click="$emit('subscribe')"
|
||||
>
|
||||
<span aria-hidden="true" :class="busy && animate ? 'i-ri:loader-2-fill animate-spin' : 'i-ri:check-line'" />
|
||||
|
Loading…
Reference in New Issue
Block a user