Skip to content

Commit 3f0cd3d

Browse files
committed
fix: kind export operations type
1 parent 7af1ed3 commit 3f0cd3d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/containers/Operations/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const BASE_COLUMNS = [
3232
];
3333

3434
export const OPERATION_KINDS: {value: OperationKind; content: string}[] = [
35-
{value: 'export', content: i18n('kind_export')},
35+
{value: 'export/s3', content: i18n('kind_export_s3')},
3636
{value: 'ss/backgrounds', content: i18n('kind_ssBackgrounds')},
3737
{value: 'buildindex', content: i18n('kind_buildIndex')},
3838
];

src/containers/Operations/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"pleaceholder_search": "Search operations",
55
"placeholder_kind": "Select operation kind",
66
"kind_ssBackgrounds": "SS/Backgrounds",
7-
"kind_export": "Export",
7+
"kind_export_s3": "Export/S3",
88
"kind_buildIndex": "Build Index",
99

1010
"column_operationId": "Operation ID",

src/containers/Operations/useOperationsQueryParams.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import {z} from 'zod';
33

44
import type {OperationKind} from '../../types/api/operations';
55

6-
const operationKindSchema = z.enum(['ss/backgrounds', 'export', 'buildindex']).catch('buildindex');
6+
const operationKindSchema = z
7+
.enum(['ss/backgrounds', 'export/s3', 'buildindex'])
8+
.catch('buildindex');
79

810
export function useOperationsQueryParams() {
911
const [queryParams, setQueryParams] = useQueryParams({

src/types/api/operations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export interface TOperationList {
113113
next_page_token?: string;
114114
}
115115

116-
export type OperationKind = 'ss/backgrounds' | 'import' | 'export' | 'buildindex' | 'scriptexec';
116+
export type OperationKind = 'ss/backgrounds' | 'import' | 'export/s3' | 'buildindex' | 'scriptexec';
117117

118118
export interface OperationListRequestParams {
119119
database: string;

0 commit comments

Comments
 (0)