Skip to content

Commit

Permalink
fix: Pass props for the current file along to the component instead o…
Browse files Browse the repository at this point in the history
…f relying on internal magic

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Apr 16, 2024
1 parent 3af51f2 commit a5b4183
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,20 @@ window.addEventListener('DOMContentLoaded', () => {
return
}


Check failure on line 39 in src/main.js

View workflow job for this annotation

GitHub Actions / NPM lint

More than 1 blank line not allowed
import('@nextcloud/vue/dist/Components/NcRelatedResourcesPanel.js').then((Module) => {
OCA.Sharing.ShareTabSections.registerSection((el, fileInfo) => {
return Module.default
return {
render(h) {
debugger

Check failure on line 44 in src/main.js

View workflow job for this annotation

GitHub Actions / NPM lint

Unexpected 'debugger' statement
return h(Module.default, {
props: {
providerId: 'files',
itemId: fileInfo.id,
},
})
},
}
})
})
})

0 comments on commit a5b4183

Please sign in to comment.