fix: prepr

This commit is contained in:
Calum H. (IMB11)
2026-07-28 17:38:33 +01:00
parent 6ef99c5989
commit 562b8e77a8
73 changed files with 173 additions and 770 deletions
@@ -169,12 +169,8 @@ const originalUnsavedChangesState = computed(
const modifiedUnsavedChangesState = computed(
() => unsavedChangesController.value?.getModified() ?? emptyUnsavedChangesState,
)
const savingUnsavedChanges = computed(
() => unsavedChangesController.value?.isSaving() ?? false,
)
const hasUnsavedChanges = computed(
() => unsavedChangesController.value?.hasChanges() ?? false,
)
const savingUnsavedChanges = computed(() => unsavedChangesController.value?.isSaving() ?? false)
const hasUnsavedChanges = computed(() => unsavedChangesController.value?.hasChanges() ?? false)
function canLeaveCurrentTab(): boolean {
if (!unsavedChangesController.value?.hasChanges()) return true
@@ -403,9 +403,7 @@ async function submitReport() {
queryClient.setQueryData<Labrinth.BlockedUsers.v3.BlockedUserId[]>(
blockedUsersQueryKey(authUserId),
(blockedUsers = []) =>
blockedUsers.includes(blockTarget)
? blockedUsers
: [...blockedUsers, blockTarget],
blockedUsers.includes(blockTarget) ? blockedUsers : [...blockedUsers, blockTarget],
)
}
addNotification({
+1 -3
View File
@@ -76,7 +76,5 @@ export async function unblock_user(userId: string): Promise<void> {
}
export async function get_blocked_users(): Promise<Labrinth.BlockedUsers.v3.BlockedUserId[]> {
return await invoke<Labrinth.BlockedUsers.v3.BlockedUserId[]>(
'plugin:users|get_blocked_users',
)
return await invoke<Labrinth.BlockedUsers.v3.BlockedUserId[]>('plugin:users|get_blocked_users')
}
@@ -653,6 +653,9 @@
"app.modal.install-to-play.additional-context-placeholder": {
"message": "Include links and images if possible and relevant"
},
"app.modal.install-to-play.block-user": {
"message": "Block user"
},
"app.modal.install-to-play.content-you-are-reporting": {
"message": "Instance youre reporting"
},
@@ -734,6 +737,9 @@
"app.modal.install-to-play.unrecognized-files": {
"message": "Unrecognized files"
},
"app.modal.install-to-play.user-blocked": {
"message": "User blocked"
},
"app.modal.install-to-play.view-contents": {
"message": "View contents"
},