diff --git a/src/ServiceWorker/sw.js b/src/ServiceWorker/sw.js index 84b0ce33..1dc31a3f 100644 --- a/src/ServiceWorker/sw.js +++ b/src/ServiceWorker/sw.js @@ -74,7 +74,7 @@ const getBearerToken = async () => { // Notification action self.addEventListener('notificationclick', function(event) { - const taskID = event.notification.data.taskID + const taskId = event.notification.data.taskId event.notification.close() switch (event.action) { @@ -87,14 +87,14 @@ self.addEventListener('notificationclick', function(event) { getBearerToken() .then(token => { - fetch(`${config.VIKUNJA_API_BASE_URL}tasks/${taskID}`, { + fetch(`${config.VIKUNJA_API_BASE_URL}tasks/${taskId}`, { method: 'post', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': `Bearer ${token}`, }, - body: JSON.stringify({id: taskID, done: true}) + body: JSON.stringify({id: taskId, done: true}) }) .then(r => r.json()) .then(r => { @@ -107,7 +107,7 @@ self.addEventListener('notificationclick', function(event) { }) break case 'show-task': - clients.openWindow(`/tasks/${taskID}`) + clients.openWindow(`/tasks/${taskId}`) break } }) diff --git a/src/components/lists/EditList.vue b/src/components/lists/EditList.vue index 17b3bc93..9dfdd967 100644 --- a/src/components/lists/EditList.vue +++ b/src/components/lists/EditList.vue @@ -68,7 +68,7 @@ - + { this.$parent.loadNamespaces() diff --git a/src/components/lists/ShowList.vue b/src/components/lists/ShowList.vue index 725e3220..d3c43b54 100644 --- a/src/components/lists/ShowList.vue +++ b/src/components/lists/ShowList.vue @@ -37,7 +37,7 @@ export default { data() { return { - listID: this.$route.params.id, + listId: this.$route.params.id, listService: ListService, list: ListModel, } diff --git a/src/components/sharing/linkSharing.vue b/src/components/sharing/linkSharing.vue index f3cbd9b9..0862489b 100644 --- a/src/components/sharing/linkSharing.vue +++ b/src/components/sharing/linkSharing.vue @@ -75,7 +75,7 @@ -