translation section for update notification

This commit is contained in:
SpikeHD 2022-04-30 01:58:58 -07:00
parent db522bf82c
commit f8c75c0adc
4 changed files with 10 additions and 5 deletions

View File

@ -61,5 +61,7 @@
"alertUserTaken": "Username is taken",
"alertPassMismatch": "Password and password confirmation do not match",
"alertAuthNoRegister": "Authentication is disabled, no need to register!",
"alertRegisterSuccess": "Registration successful!"
"alertRegisterSuccess": "Registration successful!",
"updateNotifText": "A new update is available! Newest version: "
}

View File

@ -66,12 +66,12 @@ async function checkForUpdates() {
return latest
}
async function displayUpdate(version) {
async function displayUpdate() {
const latest = await checkForUpdates()
const versionDisplay = document.querySelector('#newestVersion')
const notif = document.querySelector('#downloadNotif')
//if (latest === `v${NL_APPVERSION}`) return
if (latest === `v${NL_APPVERSION}`) return
versionDisplay.innerText = latest

View File

@ -89,4 +89,7 @@ async function doTranslation() {
set('loginPopupContentBodyBtnLogin', 'authLoginBtn')
set('loginPopupContentBodyBtnRegister', 'authRegisterBtn')
set('noLoginBtn', 'launchWithoutAuth')
// update notification
set('updateNotifText', 'updateNotifText')
}

View File

@ -551,13 +551,13 @@ a {
padding: 1em;
top: 80%;
left: 110%;
left: 120%;
width: 20%;
border-radius: 5px;
text-align: center;
transition: left 0.4s ease-in-out;
transition: left 0.5s ease-in-out;
}
#downloadNotif:hover {