diff options
| author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2023-07-05 06:54:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-05 13:54:40 +0900 |
| commit | ac4245dce1f2b957066ddc3cf10a1444fece7691 (patch) | |
| tree | 4376dd930493f3a4a594b1c38c2d8ea593bd323e /packages/frontend/src/components/MkDrive.file.vue | |
| parent | feat(frontend): deck UIのカラムからアンテナ、リストの編集画... (diff) | |
| download | misskey-ac4245dce1f2b957066ddc3cf10a1444fece7691.tar.gz misskey-ac4245dce1f2b957066ddc3cf10a1444fece7691.tar.bz2 misskey-ac4245dce1f2b957066ddc3cf10a1444fece7691.zip | |
feat(frontend): allow cropping images on drive (#11092)
* feat(frontend): allow cropping images on drive
* nanka iroiro
* folder
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Diffstat (limited to 'packages/frontend/src/components/MkDrive.file.vue')
| -rw-r--r-- | packages/frontend/src/components/MkDrive.file.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkDrive.file.vue b/packages/frontend/src/components/MkDrive.file.vue index f0641161be..3a75f8293f 100644 --- a/packages/frontend/src/components/MkDrive.file.vue +++ b/packages/frontend/src/components/MkDrive.file.vue @@ -44,6 +44,7 @@ import { getDriveFileMenu } from '@/scripts/get-drive-file-menu'; const props = withDefaults(defineProps<{ file: Misskey.entities.DriveFile; + folder: Misskey.entities.DriveFolder | null; isSelected?: boolean; selectMode?: boolean; }>(), { @@ -65,12 +66,12 @@ function onClick(ev: MouseEvent) { if (props.selectMode) { emit('chosen', props.file); } else { - os.popupMenu(getDriveFileMenu(props.file), (ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined); + os.popupMenu(getDriveFileMenu(props.file, props.folder), (ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined); } } function onContextmenu(ev: MouseEvent) { - os.contextMenu(getDriveFileMenu(props.file), ev); + os.contextMenu(getDriveFileMenu(props.file, props.folder), ev); } function onDragstart(ev: DragEvent) { |