logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

bookmarked_statuses.js (2409B)


  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[54],{802:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return C}));var a,n,s,i=o(0),c=o(2),r=(o(9),o(6),o(8)),u=o(1),l=o(65),d=o.n(l),b=o(3),h=o.n(b),m=o(15),p=o(5),k=o.n(p),O=o(16),j=o.n(O),f=o(206),g=o(756),M=o(758),v=o(252),I=o(1064),w=o(7),y=o(21);var L=Object(w.f)({heading:{id:"column.bookmarks",defaultMessage:"Bookmarks"}}),C=Object(m.connect)((function(t){return{statusIds:t.getIn(["status_lists","bookmarks","items"]),isLoading:t.getIn(["status_lists","bookmarks","isLoading"],!0),hasMore:!!t.getIn(["status_lists","bookmarks","next"])}}))(a=Object(w.g)((s=n=function(t){Object(r.a)(o,t);var e;e=o;function o(){for(var e,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return e=t.call.apply(t,[this].concat(a))||this,Object(u.a)(Object(c.a)(e),"handlePin",(function(){var t=e.props,o=t.columnId,a=t.dispatch;a(o?Object(v.h)(o):Object(v.e)("BOOKMARKS",{}))})),Object(u.a)(Object(c.a)(e),"handleMove",(function(t){var o=e.props,a=o.columnId;(0,o.dispatch)(Object(v.g)(a,t))})),Object(u.a)(Object(c.a)(e),"handleHeaderClick",(function(){e.column.scrollTop()})),Object(u.a)(Object(c.a)(e),"setRef",(function(t){e.column=t})),Object(u.a)(Object(c.a)(e),"handleLoadMore",d()((function(){e.props.dispatch(Object(f.g)())}),300,{leading:!0})),e}var a=o.prototype;return a.componentWillMount=function(){this.props.dispatch(Object(f.h)())},a.render=function(){var t=this.props,e=t.intl,o=t.statusIds,a=t.columnId,n=t.multiColumn,s=t.hasMore,c=t.isLoading,r=!!a,u=Object(i.a)(w.b,{id:"empty_column.bookmarked_statuses",defaultMessage:"You don't have any bookmarked toots yet. When you bookmark one, it will show up here."});return h.a.createElement(g.a,{bindToDocument:!n,ref:this.setRef,name:"bookmarks"},Object(i.a)(M.a,{icon:"bookmark",title:e.formatMessage(L.heading),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:r,multiColumn:n,showBackButton:!0}),Object(i.a)(I.a,{trackScroll:!r,statusIds:o,scrollKey:"bookmarked_statuses-"+a,hasMore:s,isLoading:c,onLoadMore:this.handleLoadMore,emptyMessage:u,bindToDocument:!n}))},o}(y.a),Object(u.a)(n,"propTypes",{dispatch:k.a.func.isRequired,statusIds:j.a.list.isRequired,intl:k.a.object.isRequired,columnId:k.a.string,multiColumn:k.a.bool,hasMore:k.a.bool,isLoading:k.a.bool}),a=s))||a)||a}}]);
  2. //# sourceMappingURL=bookmarked_statuses.js.map