New Icons & Credits

This commit is contained in:
JonatanRek
2020-09-06 20:54:44 +02:00
parent d34dde916e
commit 5d5e74398c
11 changed files with 12 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
<template>
<!--Notification Bar-->
<div v-if="once">
<div class="alert alert-danger" role="alert">
Update Awailible
<button type="button" class="btn btn-primary" v-on:click="refreshApp">
Refresh
</button>
<div class="alert alert-danger d-flex justify-content-between" role="alert">
<div class="align-self-center">Update availible!</div>
<div>
<button type="button" class="btn btn-primary" v-on:click="refreshApp">Refresh</button>
</div>
</div>
</div>
</template>

View File

@@ -23,10 +23,13 @@ self.addEventListener("push", function(event) {
self.addEventListener("notificationclick", function(event) {
if (event.notification) {
if (data.data) {
if (event.notification.data) {
var data = JSON.parse(event.notification.data.data);
if (data[event.action]) {
console.log(data);
console.log(data);
console.log(data[event.action]);
clients.openWindow("" + data[event.action]);
}