mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #53267 from nextcloud/artonge/fix/do_not_pass_parent_for_activity_tab_comments_plugin
This commit is contained in:
commit
d7c073cc28
3 changed files with 5 additions and 7 deletions
|
|
@ -19,7 +19,7 @@ let ActivityTabPluginInstance
|
|||
*/
|
||||
export function registerCommentsPlugins() {
|
||||
window.OCA.Activity.registerSidebarAction({
|
||||
mount: async (el, { context, fileInfo, reload }) => {
|
||||
mount: async (el, { fileInfo, reload }) => {
|
||||
const pinia = createPinia()
|
||||
|
||||
if (!ActivityTabPluginView) {
|
||||
|
|
@ -29,7 +29,6 @@ export function registerCommentsPlugins() {
|
|||
}
|
||||
ActivityTabPluginInstance = new ActivityTabPluginView({
|
||||
el,
|
||||
parent: context,
|
||||
pinia,
|
||||
propsData: {
|
||||
reloadCallback: reload,
|
||||
|
|
@ -58,10 +57,9 @@ export function registerCommentsPlugins() {
|
|||
|
||||
timestamp: moment(comment.props?.creationDateTime).toDate().getTime(),
|
||||
|
||||
mount(element: HTMLElement, { context, reload }) {
|
||||
mount(element: HTMLElement, { reload }) {
|
||||
this._CommentsViewInstance = new CommentsViewObject({
|
||||
el: element,
|
||||
parent: context,
|
||||
propsData: {
|
||||
comment,
|
||||
resourceId: fileInfo.id,
|
||||
|
|
|
|||
4
dist/comments-comments-tab.js
vendored
4
dist/comments-comments-tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/comments-comments-tab.js.map
vendored
2
dist/comments-comments-tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue