mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-15 00:46:22 +00:00
Change /auth link to /dashboard if logged in
Updated v1 version string and rebuilt client assets
This commit is contained in:
parent
d666e278ec
commit
5e54c07f94
2
dist/js/home.js
vendored
2
dist/js/home.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/home.js.map
vendored
2
dist/js/home.js.map
vendored
File diff suppressed because one or more lines are too long
@ -207,6 +207,11 @@ page.verifyToken = (token, reloadOnError) => {
|
|||||||
page.prepareUpload = () => {
|
page.prepareUpload = () => {
|
||||||
// I think this fits best here because we need to check for a valid token before we can get the albums
|
// I think this fits best here because we need to check for a valid token before we can get the albums
|
||||||
if (page.token) {
|
if (page.token) {
|
||||||
|
// Change /auth link to /dashboard
|
||||||
|
const authLink = document.querySelector('#linksColumn a[href="auth"]')
|
||||||
|
if (authLink)
|
||||||
|
authLink.setAttribute('href', 'dashboard')
|
||||||
|
|
||||||
// Display the album selection
|
// Display the album selection
|
||||||
document.querySelector('#albumDiv').classList.remove('is-hidden')
|
document.querySelector('#albumDiv').classList.remove('is-hidden')
|
||||||
|
|
||||||
@ -221,6 +226,8 @@ page.prepareUpload = () => {
|
|||||||
|
|
||||||
// Fetch albums
|
// Fetch albums
|
||||||
page.fetchAlbums()
|
page.fetchAlbums()
|
||||||
|
} else if (page.enableUserAccounts) {
|
||||||
|
document.querySelector('#loginLinkText').innerHTML = 'Create an account and keep track of your uploads'
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare & generate config tab
|
// Prepare & generate config tab
|
||||||
@ -230,9 +237,6 @@ page.prepareUpload = () => {
|
|||||||
document.querySelector('#maxSize > span').innerHTML = page.getPrettyBytes(page.maxSizeBytes)
|
document.querySelector('#maxSize > span').innerHTML = page.getPrettyBytes(page.maxSizeBytes)
|
||||||
document.querySelector('#loginToUpload').classList.add('is-hidden')
|
document.querySelector('#loginToUpload').classList.add('is-hidden')
|
||||||
|
|
||||||
if (!page.token && page.enableUserAccounts)
|
|
||||||
document.querySelector('#loginLinkText').innerHTML = 'Create an account and keep track of your uploads'
|
|
||||||
|
|
||||||
// Prepare & generate files upload tab
|
// Prepare & generate files upload tab
|
||||||
page.prepareDropzone()
|
page.prepareDropzone()
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"1": "1590435470",
|
"1": "1590435956",
|
||||||
"2": "1589010026",
|
"2": "1589010026",
|
||||||
"3": "1581416390",
|
"3": "1581416390",
|
||||||
"4": "1581416390",
|
"4": "1581416390",
|
||||||
|
Loading…
Reference in New Issue
Block a user