Skip to content

Commit 49c891c

Browse files
committed
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 0857546 commit 49c891c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/components/ViewerComponent.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default defineComponent({
6060
isEmbedded: this.isEmbedded,
6161
}
6262
},
63+
inheritAttrs: false,
6364
props: {
6465
filename: {
6566
type: String,
@@ -85,14 +86,6 @@ export default defineComponent({
8586
type: String,
8687
default: null,
8788
},
88-
showOutlineOutside: {
89-
type: Boolean,
90-
default: false,
91-
},
92-
permissions: {
93-
type: String,
94-
default: '',
95-
},
9689
source: {
9790
type: String,
9891
default: undefined,

0 commit comments

Comments
 (0)