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) {