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

Allow attaching plugins to the ShareTabView and trigger event on render
This commit is contained in:
Roeland Jago Douma 2019-02-13 16:05:13 +01:00 committed by GitHub
commit 53e8957a55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');
}
});