Skip to content
Snippets Groups Projects
Unverified Commit 53e8957a authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #14166 from nextcloud/enhancement/noid/sharing-tab-plugins

Allow attaching plugins to the ShareTabView and trigger event on render
parents 34630fb7 ca155fd5
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
id: 'shareTabView', id: 'shareTabView',
className: 'tab shareTabView', className: 'tab shareTabView',
initialize: function(name, options) {
OCA.Files.DetailTabView.prototype.initialize.call(this, name, options);
OC.Plugins.attach('OCA.Sharing.ShareTabView', this);
},
template: function(params) { template: function(params) {
return TEMPLATE; return TEMPLATE;
}, },
...@@ -80,6 +85,7 @@ ...@@ -80,6 +85,7 @@
this.$el.empty(); this.$el.empty();
// TODO: render placeholder text? // TODO: render placeholder text?
} }
this.trigger('rendered');
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment