Allow attaching plugins to the ShareTabView and trigger event on rendering

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-02-12 16:52:26 +01:00
parent 0df5110127
commit ca155fd5d8
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,11 @@
id: '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) {
return TEMPLATE;
},
@ -80,6 +85,7 @@
this.$el.empty();
// TODO: render placeholder text?
}
this.trigger('rendered');
}
});