@@ -1,7 +1,8 @@
|
||||
<template>
|
||||
<div class="flex items-center gap-2">
|
||||
<i class="pi pi-spin pi-spinner" v-if="isLoading"></i>
|
||||
|
||||
<div v-if="isLoading" class="w-5 h-5">
|
||||
<ProgressSpinner style="width: 100%; height: 100%" strokeWidth="8" fill="transparent" />
|
||||
</div>
|
||||
<RadioButton
|
||||
v-else
|
||||
v-model="model"
|
||||
@@ -10,6 +11,7 @@
|
||||
:value="method"
|
||||
@change="$emit('change', $event)"
|
||||
/>
|
||||
|
||||
<label :for="method">{{ label }}</label>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<CreateMessageDeliveryOption :isLoading="isLoading" :label :method v-model="model" />
|
||||
<CreateMessageDeliveryOption :isLoading :label :method v-model="model" />
|
||||
|
||||
<!-- Ошибка разрешений -->
|
||||
<p v-if="isError && model === method" class="text-red-500 mb-2">
|
||||
@@ -44,6 +44,7 @@ async function requestNotificationPermission() {
|
||||
}
|
||||
|
||||
const registration = await navigator.serviceWorker.ready
|
||||
|
||||
const subscription = await registration.pushManager.subscribe({
|
||||
userVisibleOnly: true,
|
||||
applicationServerKey: await applicationServerKeyPromise,
|
||||
|
||||
Reference in New Issue
Block a user