add an unsubscribe to the web push

This commit is contained in:
2023-12-10 20:17:14 -07:00
parent 0d55a722c5
commit e6f73dc81c
2 changed files with 66 additions and 9 deletions

View File

@@ -91,13 +91,21 @@
for="toggleNotifications"
class="flex items-center cursor-pointer"
@click="
this.$notify(
{
group: 'modal',
type: 'notification-permission',
},
-1,
)
!toggleNotifications
? this.$notify(
{
group: 'modal',
type: 'notification-permission',
},
-1,
)
: this.$notify(
{
group: 'modal',
type: 'notification-off',
},
-1,
)
"
>
<!-- label -->
@@ -321,10 +329,11 @@
<div class="flex py-2">
<button
@click="alertWebPushSubscription()"
class="block text-center text-md bg-blue-500 text-white px-1.5 py-2 rounded-md mb-2"
class="block text-center text-md bg-blue-500 text-white px-1.5 py-2 rounded-md mr-2 mb-2"
>
Show Subscription from Web Push Server
</button>
... but don't do that too frequently lest you get throttled.
</div>
<div class="flex py-4">