Skip to content

Commit 639a7b3

Browse files
max-nextcloudmejo-
authored andcommitted
chore(cleanup): no permissions prop and no inherited attrs
Viewer hands a lot of props to the component. We need to pick the ones we actually need and set `inheritAttrs` to false so the others are not added to the dom. Signed-off-by: Max <max@nextcloud.com>
1 parent 2001845 commit 639a7b3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/ViewerComponent.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default defineComponent({
3636
SourceView,
3737
Editor,
3838
},
39+
inheritAttrs: false,
3940
provide() {
4041
return {
4142
isEmbedded: this.isEmbedded,
@@ -66,10 +67,6 @@ export default defineComponent({
6667
type: String,
6768
default: null,
6869
},
69-
permissions: {
70-
type: String,
71-
default: '',
72-
},
7370
source: {
7471
type: String,
7572
default: undefined,

0 commit comments

Comments
 (0)