mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-30 23:01:34 +00:00
fix: home not showing pretty bytes when private
This commit is contained in:
parent
ab96bd5d99
commit
6ef911538e
@ -177,6 +177,8 @@ page.checkIfPublic = () => {
|
||||
|
||||
page.maxSize = parseInt(response.data.maxSize)
|
||||
page.maxSizeBytes = page.maxSize * 1e6
|
||||
document.querySelector('#maxSize > span').innerHTML = page.getPrettyBytes(page.maxSizeBytes)
|
||||
|
||||
page.chunkSizeConfig = {
|
||||
max: (response.data.chunkSize && parseInt(response.data.chunkSize.max)) || 95,
|
||||
default: response.data.chunkSize && parseInt(response.data.chunkSize.default)
|
||||
@ -263,8 +265,7 @@ page.prepareUpload = () => {
|
||||
// Prepare & generate config tab
|
||||
page.prepareUploadConfig()
|
||||
|
||||
// Update elements wherever applicable
|
||||
document.querySelector('#maxSize > span').innerHTML = page.getPrettyBytes(page.maxSizeBytes)
|
||||
// Hide login button
|
||||
document.querySelector('#loginToUpload').classList.add('is-hidden')
|
||||
|
||||
// Prepare & generate files upload tab
|
||||
|
Loading…
Reference in New Issue
Block a user