forked from trent_larson/crowd-funder-for-time-pwa
add an unsubscribe to the web push
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user