- add: perimssion and Send Notification to a Service Worker... -> and finally to the App
This commit is contained in:
@@ -2,6 +2,21 @@
|
||||
<q-page class="flex flex-center">
|
||||
<logo></logo>
|
||||
|
||||
<q-btn v-if="getPermission() !== 'granted'" class="enable-notifications" color="primary" rounded size="lg" icon="notifications" @click="askfornotification" :label="$t('notification.ask')"/>
|
||||
<q-btn v-if="getPermission() === 'granted'" class="enable-notifications" color="primary" rounded size="lg" icon="notifications" @click="showNotificationExample" label="Send Notification"/>
|
||||
<br>
|
||||
<div>
|
||||
<q-chip square color="secondary">
|
||||
Status:
|
||||
</q-chip>
|
||||
<q-field
|
||||
v-if="getPermission() === 'granted'"
|
||||
icon="notifications"
|
||||
:label="$t('notification.titlegranted')"
|
||||
helper="Stato Notifiche">
|
||||
</q-field>
|
||||
</div>
|
||||
|
||||
</q-page>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user