From 9a8712c76e65db32c8c11a327cc1c331a72c1719 Mon Sep 17 00:00:00 2001 From: Truman Gao <106889354+tdgao@users.noreply.github.com> Date: Mon, 9 Mar 2026 15:10:32 -0700 Subject: [PATCH] fix: misc issues in app & website (#5512) * fix: debug info copy button overflowing badly * fix: updating instance's disabled mods re-enables them * fix: modpack update enables previous disabled mods * fix: add more languages #5508 --- .../MinecraftAuthErrorModal.vue | 17 ++++- .../src/pages/[type]/[id]/settings/server.vue | 61 +++------------- apps/labrinth/src/models/exp/minecraft.rs | 34 +++++++++ packages/app-lib/src/api/profile/mod.rs | 7 +- packages/app-lib/src/api/profile/update.rs | 42 +++++++++++ packages/ui/src/utils/server-search.ts | 70 +++++++++++++++++-- 6 files changed, 170 insertions(+), 61 deletions(-) diff --git a/apps/app-frontend/src/components/ui/minecraft-auth-error-modal/MinecraftAuthErrorModal.vue b/apps/app-frontend/src/components/ui/minecraft-auth-error-modal/MinecraftAuthErrorModal.vue index 16c2c9d2f..2b1b79f65 100644 --- a/apps/app-frontend/src/components/ui/minecraft-auth-error-modal/MinecraftAuthErrorModal.vue +++ b/apps/app-frontend/src/components/ui/minecraft-auth-error-modal/MinecraftAuthErrorModal.vue @@ -10,6 +10,7 @@ import { import { Admonition, ButtonStyled, Collapsible, NewModal } from '@modrinth/ui' import { computed, ref } from 'vue' +import { hide_ads_window, show_ads_window } from '@/helpers/ads.js' import { login as login_flow, set_default_user } from '@/helpers/auth.js' import { handleSevereError } from '@/store/error.js' @@ -28,13 +29,19 @@ function show(errorVal: { message?: string }) { matchedError.value = minecraftAuthErrors.find((e) => rawError.value.includes(e.errorCode)) ?? null debugCollapsed.value = true + hide_ads_window() modal.value?.show() } function hide() { + onModalHide() modal.value?.hide() } +function onModalHide() { + show_ads_window() +} + defineExpose({ show, hide, @@ -67,7 +74,7 @@ async function copyToClipboard(text: string) {