diff options
author | Azul <azul@riseup.net> | 2021-06-09 14:47:22 +0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2021-06-10 09:14:12 +0300 |
commit | 1b5457ed9891df127f0686ca20783b22b33eaf83 (patch) | |
tree | 0e5fedda2a4b8149a88fcb44f9137739494cb5b5 /src/components/ViewerComponent.vue | |
parent | d3b4d0cde3fe2e9faf528d37baf53720432ac7d4 (diff) |
ViewerComponent: pass on autofocus to EditorWrapper
The `ViewerComponent` is reused in the collectives app.
Allow disabling autofocus when using the viewer component.
Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'src/components/ViewerComponent.vue')
-rw-r--r-- | src/components/ViewerComponent.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/ViewerComponent.vue b/src/components/ViewerComponent.vue index 952f7b8b3..c48a8ae46 100644 --- a/src/components/ViewerComponent.vue +++ b/src/components/ViewerComponent.vue @@ -24,6 +24,7 @@ <EditorWrapper :file-id="fileid" :relative-path="filename" :active="active" + :autofocus="autofocus" :share-token="shareToken" :mime="mime" /> </template> @@ -47,6 +48,10 @@ export default { type: Boolean, default: false, }, + autofocus: { + type: Boolean, + default: true, + }, shareToken: { type: String, default: null, |