mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix: checklist forcing redirects (#6173)
This commit is contained in:
@@ -1284,40 +1284,15 @@ onMounted(async () => {
|
|||||||
notifications.setNotificationLocation('left')
|
notifications.setNotificationLocation('left')
|
||||||
|
|
||||||
if (projectV2.value.status !== 'processing') {
|
if (projectV2.value.status !== 'processing') {
|
||||||
if (moderationQueue.isQueueMode && moderationQueue.queueLength > 1) {
|
|
||||||
addNotification({
|
|
||||||
title: 'Project already moderated',
|
|
||||||
text: 'Skipping to the next project in the queue.',
|
|
||||||
type: 'info',
|
|
||||||
})
|
|
||||||
await skipToNextProject()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
alreadyReviewed.value = true
|
alreadyReviewed.value = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to acquire lock
|
|
||||||
const result = await moderationQueue.acquireLock(projectV2.value.id)
|
const result = await moderationQueue.acquireLock(projectV2.value.id)
|
||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
handleLockAcquired()
|
handleLockAcquired()
|
||||||
} else if (result.locked_by) {
|
} else if (result.locked_by) {
|
||||||
// Actually locked by another moderator
|
|
||||||
// In queue mode with more projects - auto-skip to next project
|
|
||||||
if (moderationQueue.isQueueMode && moderationQueue.queueLength > 1) {
|
|
||||||
addNotification({
|
|
||||||
title: 'Project locked',
|
|
||||||
text: `Skipped project locked by @${result.locked_by.username}.`,
|
|
||||||
type: 'info',
|
|
||||||
})
|
|
||||||
// skipToNextProject already calls completeCurrentProject
|
|
||||||
await skipToNextProject()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Single project mode or last in queue - show locked UI
|
|
||||||
lockStatus.value = {
|
lockStatus.value = {
|
||||||
locked: true,
|
locked: true,
|
||||||
lockedBy: result.locked_by,
|
lockedBy: result.locked_by,
|
||||||
|
|||||||
Reference in New Issue
Block a user