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/os.ts | |
| 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/os.ts')
| -rw-r--r-- | packages/frontend/src/os.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/os.ts b/packages/frontend/src/os.ts index c44d348046..1a5ed90541 100644 --- a/packages/frontend/src/os.ts +++ b/packages/frontend/src/os.ts @@ -460,11 +460,13 @@ export async function pickEmoji(src: HTMLElement | null, opts) { export async function cropImage(image: Misskey.entities.DriveFile, options: { aspectRatio: number; + uploadFolder?: string | null; }): Promise<Misskey.entities.DriveFile> { return new Promise((resolve, reject) => { popup(defineAsyncComponent(() => import('@/components/MkCropperDialog.vue')), { file: image, aspectRatio: options.aspectRatio, + uploadFolder: options.uploadFolder, }, { ok: x => { resolve(x); |