2023-01-01 19:24:22 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
defineProps<{
|
|
|
|
title?: string
|
|
|
|
message: string
|
|
|
|
}>()
|
2023-08-01 10:12:51 +01:00
|
|
|
const modelValue = defineModel<boolean>()
|
2023-01-01 19:24:22 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div
|
|
|
|
v-if="modelValue"
|
|
|
|
role="alert"
|
|
|
|
aria-describedby="notification-failed"
|
|
|
|
flex="~ col"
|
|
|
|
gap-1 text-sm
|
|
|
|
pt-1 ps-2 pe-1 pb-2
|
|
|
|
text-red-600 dark:text-red-400
|
|
|
|
border="~ base rounded red-600 dark:red-400"
|
|
|
|
>
|
|
|
|
<head id="notification-failed" flex justify-between>
|
|
|
|
<div flex items-center gap-x-2 font-bold>
|
|
|
|
<div aria-hidden="true" i-ri:error-warning-fill />
|
2023-01-05 08:47:58 +00:00
|
|
|
<p>{{ title ?? $t('settings.notifications.push_notifications.subscription_error.title') }}</p>
|
2023-01-01 19:24:22 +00:00
|
|
|
</div>
|
2023-01-05 08:47:58 +00:00
|
|
|
<CommonTooltip placement="bottom" :content="$t('settings.notifications.push_notifications.subscription_error.clear_error')">
|
2023-01-01 19:24:22 +00:00
|
|
|
<button
|
|
|
|
flex rounded-4 p1
|
|
|
|
hover:bg-active cursor-pointer transition-100
|
2023-01-05 08:47:58 +00:00
|
|
|
:aria-label="$t('settings.notifications.push_notifications.subscription_error.clear_error')"
|
2023-01-01 19:24:22 +00:00
|
|
|
@click="modelValue = false"
|
|
|
|
>
|
2023-01-08 07:49:32 +00:00
|
|
|
<span aria-hidden="true" w="1.75em" h="1.75em" i-ri:close-line />
|
2023-01-01 19:24:22 +00:00
|
|
|
</button>
|
|
|
|
</CommonTooltip>
|
|
|
|
</head>
|
|
|
|
<p>{{ message }}</p>
|
2023-02-17 11:11:19 +00:00
|
|
|
<p py-2>
|
|
|
|
<i18n-t keypath="settings.notifications.push_notifications.subscription_error.error_hint">
|
|
|
|
<NuxtLink font-bold href="https://docs.elk.zone/pwa#faq" target="_blank" inline-flex="~ row" items-center gap-x-2>
|
|
|
|
https://docs.elk.zone/pwa#faq
|
|
|
|
<span inline-block aria-hidden="true" i-ri:external-link-line class="rtl-flip" />
|
|
|
|
</NuxtLink>
|
|
|
|
</i18n-t>
|
|
|
|
</p>
|
2023-02-04 18:43:24 +00:00
|
|
|
<p py-2>
|
|
|
|
<NuxtLink font-bold text-primary href="https://github.com/elk-zone/elk" target="_blank" flex="~ row" items-center gap-x-2>
|
|
|
|
{{ $t('settings.notifications.push_notifications.subscription_error.repo_link') }}
|
|
|
|
<span inline-block aria-hidden="true" i-ri:external-link-line class="rtl-flip" />
|
|
|
|
</NuxtLink>
|
|
|
|
</p>
|
2023-01-01 19:24:22 +00:00
|
|
|
</div>
|
|
|
|
</template>
|