Fixed redis error, and added link on click on notifications

This commit is contained in:
Kasper Rynning-Tønnesen
2020-03-17 11:30:29 +01:00
parent d1ed8112bf
commit 71a9f99e45
5 changed files with 146 additions and 47 deletions

View File

@@ -13,6 +13,12 @@
v-model="pushMessage"
placeholder="Push meldingtekst"
/>
<input
id="notification-link"
type="text"
v-model="pushLink"
placeholder="Push-click link"
/>
</div>
</div>
<div class="button-container">
@@ -173,6 +179,7 @@ export default {
winners: [],
wines: [],
pushMessage: "",
pushLink: "/",
toastText: undefined,
showToast: false,
showCamera: false,
@@ -239,7 +246,7 @@ export default {
// 'Content-Type': 'application/x-www-form-urlencoded',
},
method: "POST",
body: JSON.stringify({ message: this.pushMessage })
body: JSON.stringify({ message: this.pushMessage, link: this.pushLink })
});
let response = await _response.json();
if (response) {