mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix storage check display (#603)
This commit is contained in:
1 parent
1c91ac470c
commit
d3f9a64b9b
1 file changed
+3
-3
@@ -256,7 +256,7 @@ class RemoteStorageService {
|
|||||||
async status() {
|
async status() {
|
||||||
return {
|
return {
|
||||||
type: 'S3',
|
type: 'S3',
|
||||||
status: !!this.error,
|
status: !this.error,
|
||||||
error: this.error,
|
error: this.error,
|
||||||
bucket: this.bucket,
|
bucket: this.bucket,
|
||||||
};
|
};
|
||||||
@@ -265,7 +265,7 @@ class RemoteStorageService {
|
|||||||
|
|
||||||
class LocalStorageService {
|
class LocalStorageService {
|
||||||
client: null;
|
client: null;
|
||||||
error: null;
|
error = '';
|
||||||
dir: string;
|
dir: string;
|
||||||
opts: null;
|
opts: null;
|
||||||
private replaceWithAlternativeUrlFor: Record<'user' | 'judge', (originalUrl: string) => string>;
|
private replaceWithAlternativeUrlFor: Record<'user' | 'judge', (originalUrl: string) => string>;
|
||||||
@@ -342,7 +342,7 @@ class LocalStorageService {
|
|||||||
async status() {
|
async status() {
|
||||||
return {
|
return {
|
||||||
type: 'Local',
|
type: 'Local',
|
||||||
status: !!this.error,
|
status: !this.error,
|
||||||
error: this.error,
|
error: this.error,
|
||||||
bucket: 'Hydro',
|
bucket: 'Hydro',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user