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\Compare;
|
||||||
use Driver\SQL\Condition\CondIn;
|
use Driver\SQL\Condition\CondIn;
|
||||||
use Driver\Sql\Condition\CondNull;
|
use Driver\SQL\Condition\CondNull;
|
||||||
use Driver\SQL\SQL;
|
use Driver\SQL\SQL;
|
||||||
use External\ZipStream\BufferWriter;
|
use External\ZipStream\BufferWriter;
|
||||||
use External\ZipStream\File;
|
use External\ZipStream\File;
|
||||||
@ -161,7 +161,7 @@ namespace Api\File {
|
|||||||
use Api\Parameter\StringType;
|
use Api\Parameter\StringType;
|
||||||
use Driver\SQL\Condition\Compare;
|
use Driver\SQL\Condition\Compare;
|
||||||
use Driver\SQL\Condition\CondIn;
|
use Driver\SQL\Condition\CondIn;
|
||||||
use Driver\Sql\Condition\CondNull;
|
use Driver\SQL\Condition\CondNull;
|
||||||
use Objects\User;
|
use Objects\User;
|
||||||
|
|
||||||
class ValidateToken extends FileAPI {
|
class ValidateToken extends FileAPI {
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
namespace Driver\SQL\Condition;
|
||||||
namespace Driver\Sql\Condition;
|
|
||||||
|
|
||||||
|
|
||||||
class CondNull extends Condition {
|
class CondNull extends Condition {
|
||||||
|
|
||||||
|
@ -96,7 +96,11 @@ export class FileBrowser extends React.Component {
|
|||||||
size /= 1024.0;
|
size /= 1024.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return size.toFixed(1) + " " + suffixes[i];
|
if (i === 0 || Math.round(size) === size) {
|
||||||
|
return size + " " + suffixes[i];
|
||||||
|
} else {
|
||||||
|
return size.toFixed(1) + " " + suffixes[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
canUpload() {
|
canUpload() {
|
||||||
|
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