Skip to content

Commit

Permalink
feat(dcellar-web-ui): introduce migrate bucket feature
Browse files Browse the repository at this point in the history
  • Loading branch information
devinxl committed May 22, 2024
1 parent 464a596 commit 22751d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/dcellar-web-ui/src/facade/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const headBucket = async (bucketName: string) => {
const client = await getClient();
const { bucketInfo } = await client.bucket
.headBucket(bucketName)
.catch(() => ({}) as QueryHeadBucketResponse);
.catch(() => ({} as QueryHeadBucketResponse));
return bucketInfo || null;
};

Expand Down Expand Up @@ -262,7 +262,7 @@ export const getBucketQuotaUpdateTime = async (bucketName: string) => {
const defaultValue = new Long(getTimestampInSeconds());
const res = await storageClient
.QueryQuotaUpdateTime({ bucketName })
.catch((e) => ({ updateAt: defaultValue }) as QueryQuoteUpdateTimeResponse);
.catch((e) => ({ updateAt: defaultValue } as QueryQuoteUpdateTimeResponse));
return Number(res?.updateAt || defaultValue);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { InsufficientBalances } from '@/components/Fee/InsufficientBalances';
import { IconFont } from '@/components/IconFont';
import { DCButton } from '@/components/common/DCButton';
import { useOffChainAuth } from '@/context/off-chain-auth/useOffChainAuth';
import { migrateBucket } from '@/facade/bucket';
import { TBucket, setBucketEditQuota, setupBucketList } from '@/store/slices/bucket';
import { migrateBucket, pollingGetBucket } from '@/facade/bucket';
import { E_OFF_CHAIN_AUTH } from '@/facade/error';
import { BUTTON_GOT_IT, UNKNOWN_ERROR, WALLET_CONFIRM } from '@/modules/object/constant';
import { useAppDispatch, useAppSelector } from '@/store';
import { TBucket, setBucketEditQuota, setupBucketList } from '@/store/slices/bucket';
import { formatQuota } from '@/utils/string';
import {
Divider,
Expand Down

0 comments on commit 22751d9

Please sign in to comment.