fix: tech rev card not refreshing on status change

This commit is contained in:
Gravy Boat
2026-06-25 22:44:28 -02:30
parent 64f7fb811e
commit 1dd194ed81
@@ -193,6 +193,7 @@ async function setStatus(status: Labrinth.Projects.v2.ProjectStatus) {
isLoadingStatusAction.value = true isLoadingStatusAction.value = true
try { try {
await client.labrinth.projects_v2.edit(props.item.project.id, { status }) await client.labrinth.projects_v2.edit(props.item.project.id, { status })
emit('refetch')
projectStatus.value = status projectStatus.value = status
} catch (err) { } catch (err) {
@@ -1206,7 +1207,7 @@ async function handleSubmitReview(verdict: 'safe' | 'unsafe') {
</OverflowMenu> </OverflowMenu>
</ButtonStyled> </ButtonStyled>
<ButtonStyled v-if="featureFlags.developerMode" type="outlined"> <ButtonStyled v-if="featureFlags.developerMode" type="outlined">
<button @click="emit('showMaliciousSummary', unsafeFiles)">Debug Summary</button> <button @click="emit('showMaliciousSummary', unsafeFiles)">Debug</button>
</ButtonStyled> </ButtonStyled>
</template> </template>
</ThreadView> </ThreadView>