forked from dark_thunder/immich
Add navbar button to copy image (#961)
* Add navbar button to copy image * Use global event for copy image * merge upstream * Fixed missing required props * feat(web): Show notification after copying image to clipboard * chore(web): Fix typescript error * chore(web): Formatting Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
8
web/src/app.d.ts
vendored
8
web/src/app.d.ts
vendored
@ -9,3 +9,11 @@ declare namespace App {
|
||||
|
||||
// interface Platform {}
|
||||
}
|
||||
|
||||
// Source: https://stackoverflow.com/questions/63814432/typescript-typing-of-non-standard-window-event-in-svelte
|
||||
// To fix the <svelte:window... in components/asset-viewer/photo-viewer.svelte
|
||||
declare namespace svelte.JSX {
|
||||
interface HTMLAttributes<T> {
|
||||
oncopyImage?: () => void;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user