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

Allow attaching plugins to the ShareTabView and trigger event on render
pull/14005/head
Roeland Jago Douma 7 years ago committed by GitHub
commit 53e8957a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      apps/files_sharing/js/sharetabview.js

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

Loading…
Cancel
Save