FileAPI BugFix
This commit is contained in:
parent
e19b4d1a46
commit
48a3932451
@ -4,7 +4,7 @@ namespace Api {
|
||||
|
||||
use Driver\SQL\Condition\Compare;
|
||||
use Driver\SQL\Condition\CondIn;
|
||||
use Driver\Sql\Condition\CondNull;
|
||||
use Driver\SQL\Condition\CondNull;
|
||||
use Driver\SQL\SQL;
|
||||
use External\ZipStream\BufferWriter;
|
||||
use External\ZipStream\File;
|
||||
@ -161,7 +161,7 @@ namespace Api\File {
|
||||
use Api\Parameter\StringType;
|
||||
use Driver\SQL\Condition\Compare;
|
||||
use Driver\SQL\Condition\CondIn;
|
||||
use Driver\Sql\Condition\CondNull;
|
||||
use Driver\SQL\Condition\CondNull;
|
||||
use Objects\User;
|
||||
|
||||
class ValidateToken extends FileAPI {
|
||||
|
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Driver\Sql\Condition;
|
||||
|
||||
namespace Driver\SQL\Condition;
|
||||
|
||||
class CondNull extends Condition {
|
||||
|
||||
|
@ -96,8 +96,12 @@ export class FileBrowser extends React.Component {
|
||||
size /= 1024.0;
|
||||
}
|
||||
|
||||
if (i === 0 || Math.round(size) === size) {
|
||||
return size + " " + suffixes[i];
|
||||
} else {
|
||||
return size.toFixed(1) + " " + suffixes[i];
|
||||
}
|
||||
}
|
||||
|
||||
canUpload() {
|
||||
return this.state.api.loggedIn || (this.state.token.valid && this.state.token.type === "upload");
|
||||
|
14
js/files.min.js
vendored
14
js/files.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user