diff --git a/client/dive-common/apispec.ts b/client/dive-common/apispec.ts index 1c7dee2f4..9d751ff10 100644 --- a/client/dive-common/apispec.ts +++ b/client/dive-common/apispec.ts @@ -125,7 +125,7 @@ interface Api { saveMetadata(datasetId: string, metadata: DatasetMetaMutable): Promise; saveAttributes(datasetId: string, args: SaveAttributeArgs): Promise; // Non-Endpoint shared functions - openFromDisk(datasetType: DatasetType | 'calibration' | 'annotation' | 'text', directory?: boolean): + openFromDisk(datasetType: DatasetType | 'calibration' | 'annotation' | 'text' | 'zip', directory?: boolean): Promise<{canceled?: boolean; filePaths: string[]; fileList?: File[]; root?: string}>; importAnnotationFile(id: string, path: string, file?: File): Promise; } diff --git a/client/dive-common/components/ImportButton.vue b/client/dive-common/components/ImportButton.vue index e203d1382..577b870b9 100644 --- a/client/dive-common/components/ImportButton.vue +++ b/client/dive-common/components/ImportButton.vue @@ -20,7 +20,7 @@ export default defineComponent({ required: true, }, openType: { - type: String as PropType, + type: String as PropType, required: true, }, multiCamImport: { //TODO: Temporarily used to hide the stereo settings from users @@ -31,6 +31,10 @@ export default defineComponent({ type: Object, default: () => DefaultButtonAttrs, }, + small: { // Smaller setting for "Add Another ..." + type: Boolean, + default: false, + }, }, setup() { return { @@ -50,7 +54,8 @@ export default defineComponent({