This commit is contained in:
isUnknown 2024-12-16 17:25:52 +01:00
parent 64af50816b
commit 24dbf5bf8d
5 changed files with 30 additions and 11 deletions

View file

@ -45,7 +45,7 @@
>
<router-link
v-if="currentTab === 'all' || !notification.isRead"
:to="notification.location.href"
:to="toPath(notification.location.href)"
>
<header>
<p class="flex">
@ -68,7 +68,7 @@
</p>
</header>
<p
v-if="notification.type === 'comment'"
v-if="notification.type"
class="notification__body | text-md font-medium | line-clamp"
>
{{ notification.text }}
@ -172,6 +172,10 @@ function readAll() {
console.log("Could not read all notifications : ", error);
}
}
function toPath(string) {
return string.replace(window.location.origin, "");
}
</script>
<style scoped>