comments-comments-tab.js 1.1 KB

123
  1. /*! For license information please see comments-comments-tab.js.LICENSE.txt */
  2. !function(){function e(e,n,t,o,r,i,a){try{var c=e[i](a),u=c.value}catch(e){return void t(e)}c.done?n(u):Promise.resolve(u).then(o,r)}var n=null,o=new OCA.Files.Sidebar.Tab({id:"comments",name:t("comments","Comments"),icon:"icon-comment",mount:function(t,o,r){return(i=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n&&n.$destroy(),n=new OCA.Comments.View("files",{parent:r}),e.next=4,n.update(o.id);case 4:n.$mount(t);case 5:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(o,r){var a=i.apply(n,t);function c(n){e(a,o,r,c,u,"next",n)}function u(n){e(a,o,r,c,u,"throw",n)}c(void 0)}))})();var i},update:function(e){n.update(e.id)},destroy:function(){n.$destroy(),n=null},scrollBottomReached:function(){n.onScrollBottomReached()}});window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(o)}))}();
  3. //# sourceMappingURL=comments-comments-tab.js.map?v=badfdc180a9f8cfb2cfa