Skip to content

Commit

Permalink
Change INCR to INC
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1666204 committed May 7, 2024
1 parent 11a7914 commit c4bde9b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/src/api/generated/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,7 @@ export interface ResponseBackupJob {
*/
'tenantName': string;
/**
* Enum: FULL, INCR, ARCHIVE, CLEAN
* Enum: FULL, INC, ARCHIVE, CLEAN
* @type {string}
* @memberof ResponseBackupJob
*/
Expand Down Expand Up @@ -9603,7 +9603,7 @@ export class OBTenantApi extends BaseAPI {
*/
export const ListBackupJobsTypeEnum = {
FULL: 'FULL',
INCR: 'INCR',
INC: 'INC',
CLEAN: 'CLEAN',
ARCHIVE: 'ARCHIVE'
} as const;
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/Tenant/Detail/Backup/BackupJobs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function BackupJobs() {
const [curSelect, setCurSelect] = useState<API.JobType>('FULL');
const { data: backupJobsResponse } = useRequest(
() => {
return getBackupJobs({ ns, name, type: curSelect });
return getBackupJobs({ ns:ns!, name:name!, type: curSelect });
},
{
refreshDeps: [curSelect],
Expand All @@ -31,7 +31,7 @@ export default function BackupJobs() {
children: <JobTable curSelect={curSelect} dataSource={backupJobs} />,
},
{
key: 'INCR',
key: 'INC',
label: intl.formatMessage({
id: 'Dashboard.Detail.Backup.BackupJobs.IncrementalBackup',
defaultMessage: '增量备份',
Expand Down
2 changes: 1 addition & 1 deletion ui/src/type/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ declare namespace API {

type TenantRole = 'PRIMARY' | 'STANDBY';

type JobType = 'FULL' | 'INCR' | 'CLEAN' | 'ARCHIVE';
type JobType = 'FULL' | 'INC' | 'CLEAN' | 'ARCHIVE';

type DestType = 'NFS' | 'OSS';

Expand Down

0 comments on commit c4bde9b

Please sign in to comment.