Fix notification statuses

environments/review-front-deve-otr6gc/deployments/13401
wvffle 2022-07-21 19:47:27 +00:00 zatwierdzone przez Georg Krause
rodzic 2323cf70d7
commit 8b90029d08
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -97,8 +97,8 @@ const moderationNotifications = computed(() =>
onMounted(async () => {
const [edits, reports, requests] = await Promise.all([
axios.get('mutations/', { params: { page_size: 1, q: 'is_approved:null' } }).catch(() => ({ data: { count: 0 } })),
axios.get('manage/moderation/reports/', { params: { page_size: 1 } }).catch(() => ({ data: { count: 0 } })),
axios.get('manage/moderation/requests/', { params: { page_size: 1 } }).catch(() => ({ data: { count: 0 } }))
axios.get('manage/moderation/reports/', { params: { page_size: 1, q: 'resolved:no' } }).catch(() => ({ data: { count: 0 } })),
axios.get('manage/moderation/requests/', { params: { page_size: 1, q: 'status:pending' } }).catch(() => ({ data: { count: 0 } }))
])
store.commit('ui/incrementNotifications', {