2018-11-08 01:09:33 +01:00
|
|
|
<template >
|
|
|
|
|
<q-page class="flex flex-center">
|
2019-01-08 01:22:09 +01:00
|
|
|
<logo></logo>
|
2018-11-08 01:09:33 +01:00
|
|
|
|
2019-02-04 16:47:15 +01:00
|
|
|
<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>
|
|
|
|
|
|
2018-11-08 01:09:33 +01:00
|
|
|
</q-page>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" src="./home.ts">
|
|
|
|
|
</script>
|
2019-01-16 02:26:43 +01:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
@import './home.scss';
|
|
|
|
|
</style>
|