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') }}
-
+ -
+ ๐ {{ $t('about.officialWebsite') }}
+
-
๐ {{ $t('about.officialRepo') }}
diff --git a/src/lang/en.mjs b/src/lang/en.mjs
index 7ecccf2..b47aa01 100644
--- a/src/lang/en.mjs
+++ b/src/lang/en.mjs
@@ -217,7 +217,10 @@ const en = {
deezerNotAvailable: 'Deezer is not available in your country. You should use a VPN.',
startGeneratingItems: 'Processing {n} items...',
finishGeneratingItems: 'Generated {n} items.',
- noLovedPlaylist: 'No loved tracks playlist!'
+ noLovedPlaylist: 'No loved tracks playlist!',
+ checkingUpdates: 'Checking for updates...',
+ noUpdateAvailable: 'No updates found',
+ updateAvailable: 'An update is available!'
},
settings: {
title: 'Settings',
diff --git a/src/lang/it.mjs b/src/lang/it.mjs
index 6edfb23..264f14b 100644
--- a/src/lang/it.mjs
+++ b/src/lang/it.mjs
@@ -217,7 +217,10 @@ const it = {
deezerNotAvailable: 'Deezer non รจ disponibile nel tuo paese. Dovresti usare una VPN.',
startGeneratingItems: 'Elaborando {n} oggetti...',
finishGeneratingItems: '{n} oggetti generati.',
- noLovedPlaylist: 'Nessuna playlist "Canzoni del cuore"!'
+ noLovedPlaylist: 'Nessuna playlist "Canzoni del cuore"!',
+ checkingUpdates: 'Cercando aggiornamenti...',
+ noUpdateAvailable: 'Nessun aggiornamento trovato',
+ updateAvailable: 'ร disponibile un aggiornamento!'
},
settings: {
title: 'Impostazioni',
diff --git a/src/store/modules/appInfo.js b/src/store/modules/appInfo.js
index bd50b95..292e1ff 100644
--- a/src/store/modules/appInfo.js
+++ b/src/store/modules/appInfo.js
@@ -39,9 +39,11 @@ const actions = {
*/
setAppInfo({ commit }, payload) {
commit('SET_CURRENT_COMMIT', payload.currentCommit)
+ commit('SET_DEEMIX_VERSION', payload.deemixVersion)
+ },
+ setUpdateInfo({ commit }, payload) {
commit('SET_LATEST_COMMIT', payload.latestCommit)
commit('SET_UPDATE_AVAILABLE', payload.updateAvailable)
- commit('SET_DEEMIX_VERSION', payload.deemixVersion)
},
/**
* @param {any} action