mirror of
https://github.com/modrinth/code.git
synced 2026-09-04 05:48:57 +00:00
fix: tech rev card not refreshing on status change
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user