diff --git a/client/components/App.vue b/client/components/App.vue index 61bbb3b7..9ae4190f 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -38,7 +38,6 @@ import { ref, Ref, InjectionKey, - inject, } from "vue"; import {useStore} from "../js/store"; import type {DebouncedFunc} from "lodash"; @@ -47,10 +46,6 @@ export const imageViewerKey = Symbol() as InjectionKey>; const confirmDialogKey = Symbol() as InjectionKey>; -export const useImageViewer = () => { - return inject(imageViewerKey) as Ref; -}; - export default defineComponent({ name: "App", components: { diff --git a/client/components/ImageViewer.vue b/client/components/ImageViewer.vue index 31b8d750..04ca49d3 100644 --- a/client/components/ImageViewer.vue +++ b/client/components/ImageViewer.vue @@ -456,6 +456,7 @@ export default defineComponent({ return { link, + channel, image, transform, closeViewer,