Skip to content

Commit 8325351

Browse files
committed
finalUpdate
1 parent 113ae62 commit 8325351

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/src/views/files/FileOperationMenu.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ import { IonButton, IonIcon, IonItem, IonList, IonText } from '@ionic/vue';
101101
import { chevronDown, close } from 'ionicons/icons';
102102
import { MsImage, NoImportInProgress } from 'megashark-lib';
103103
import type { Component } from 'vue';
104+
import { Path } from '@/parsec';
104105
import { computed, inject, onMounted, onUnmounted, ref } from 'vue';
105106
106107
interface OperationItem {
@@ -236,7 +237,7 @@ async function onClearClicked(): Promise<void> {
236237
}
237238
238239
async function onOperationClick(
239-
operation: FileOperationData | FileOperationImportData | FileOperationCopyData | FileOperationMoveData,
240+
operation: FileOperationData,
240241
status: FileOperationEvents,
241242
_eventData?: FileOperationEventData,
242243
): Promise<void> {
@@ -266,8 +267,8 @@ async function onOperationClick(
266267
await navigateTo(Routes.Documents, {
267268
query: {
268269
workspaceHandle: operation.workspaceHandle,
269-
documentPath: op.entries[0].path,
270-
selectFile: op.entries.length === 1 ? op.entries.at(0)?.name : undefined,
270+
documentPath: await Path.parent(op.entries[0].path),
271+
selectFile: op.entries.at(0)?.name,
271272
},
272273
});
273274
}

0 commit comments

Comments
 (0)