Add modpack page warning + Fix notifications nav titles

This commit is contained in:
venashial
2022-05-15 18:27:02 -07:00
parent 46d1537d8f
commit 720739e50a
6 changed files with 82 additions and 19 deletions

View File

@@ -104,7 +104,9 @@ export default {
notificationTypes() {
const obj = { all: true }
for (const notification of this.$user.notifications) {
for (const notification of this.$user.notifications.filter(
(it) => it.type !== null
)) {
obj[
Object.keys(NOTIFICATION_TYPES).find(
(key) => NOTIFICATION_TYPES[key] === notification.type
@@ -112,6 +114,8 @@ export default {
] = true
}
console.log(obj)
return Object.keys(obj)
},
},