You've already forked AstralRinth
forked from didirus/AstralRinth
Add modpack page warning + Fix notifications nav titles
This commit is contained in:
@@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user