diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index cfc5c94e..5d8b7c88 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -73,7 +73,7 @@ import { useCheckDisableMouseover } from '@/composables/macCssFix.js' import { debugAnalytics, initAnalytics, optOutAnalytics, trackEvent } from '@/helpers/analytics' import { check_reachable } from '@/helpers/auth.js' import { get_user } from '@/helpers/cache.js' -import { command_listener, warning_listener } from '@/helpers/events.js' +import { command_listener, warning_listener, info_listener } from '@/helpers/events.js' import { useFetch } from '@/helpers/fetch.js' import { cancelLogin, get as getCreds, login, logout } from '@/helpers/mr_auth.ts' import { list } from '@/helpers/profile.js' @@ -286,6 +286,15 @@ async function setupApp() { }), ) + // [AR] Info listener + await info_listener((e) => + addNotification({ + title: 'Info', + text: e.message, + type: 'info', + }), + ) + useFetch( `https://api.modrinth.com/appCriticalAnnouncement.json?version=${version}`, 'criticalAnnouncements', diff --git a/apps/app-frontend/src/components/ui/AccountsCard.vue b/apps/app-frontend/src/components/ui/AccountsCard.vue index f9a44d7b..1e60f947 100644 --- a/apps/app-frontend/src/components/ui/AccountsCard.vue +++ b/apps/app-frontend/src/components/ui/AccountsCard.vue @@ -1,12 +1,24 @@