fixes
This commit is contained in:
parent
bf9f574fa2
commit
20f8a399ea
3 changed files with 4 additions and 4 deletions
|
|
@ -306,7 +306,7 @@ const conversation = {
|
||||||
const topLevel = this.conversation.reduce(
|
const topLevel = this.conversation.reduce(
|
||||||
(tl, cur) =>
|
(tl, cur) =>
|
||||||
tl.filter((k) =>
|
tl.filter((k) =>
|
||||||
this.getReplies(cur.id)
|
!this.getReplies(cur.id)
|
||||||
.map((v) => v.id)
|
.map((v) => v.id)
|
||||||
.includes(k.id),
|
.includes(k.id),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const hasLanguageFile = (code) => languages.includes(code)
|
||||||
|
|
||||||
const languageFileMap = import.meta.glob(['./*.json', '!./en.json'])
|
const languageFileMap = import.meta.glob(['./*.json', '!./en.json'])
|
||||||
|
|
||||||
const loadLanguageFile = (code) => {
|
const loadLanguageFile = async (code) => {
|
||||||
const jsonName = langCodeToJsonName(code)
|
const jsonName = langCodeToJsonName(code)
|
||||||
if (jsonName === 'en') return { default: enMessages }
|
if (jsonName === 'en') return { default: enMessages }
|
||||||
return languageFileMap[`./${jsonName}.json`]()
|
return languageFileMap[`./${jsonName}.json`]()
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ const mergeArrayLength = (oldValue, newValue) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const getNotificationPermission = () => {
|
const getNotificationPermission = async () => {
|
||||||
const Notification = window.Notification
|
const Notification = window.Notification
|
||||||
|
|
||||||
if (!Notification) return null
|
if (!Notification) return null
|
||||||
|
|
@ -383,7 +383,7 @@ const users = {
|
||||||
mutations,
|
mutations,
|
||||||
getters,
|
getters,
|
||||||
actions: {
|
actions: {
|
||||||
fetchUserIfMissing(store, id) {
|
async fetchUserIfMissing(store, id) {
|
||||||
const user = store.getters.findUser(id)
|
const user = store.getters.findUser(id)
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return store.dispatch('fetchUser', id)
|
return store.dispatch('fetchUser', id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue