diff --git a/src/app.js b/src/app.js index ac125d8..6ba48b3 100644 --- a/src/app.js +++ b/src/app.js @@ -89,6 +89,17 @@ async function startApp() { } else { loggedIn({ status: 3, user: connectResponse.currentUser, arl }) } + + if (connectResponse.checkForUpdates) { + toast(i18n.t('toasts.checkingUpdates'), 'loading', false, 'updates-toast') + const updates = await fetchData('checkForUpdates') + store.dispatch('setUpdateInfo', updates).catch(console.error) + if (updates.updateAvailable) { + toast(i18n.t('toasts.updateAvailable'), 'chevron-triple-up', true, 'updates-toast') + } else { + toast(i18n.t('toasts.noUpdateAvailable'), 'done', true, 'updates-toast') + } + } } function initClient() { diff --git a/src/components/pages/About.vue b/src/components/pages/About.vue index 4f840a0..56837cd 100644 --- a/src/components/pages/About.vue +++ b/src/components/pages/About.vue @@ -33,9 +33,9 @@

{{ $t('about.titles.usefulLinks') }}