qb_akkoma/priv/static/packs/features/reblogs.js
Haelwenn (lanodan) Monnier 83e3afac2c Update mastodon frontend
2018-09-20 16:13:13 +00:00

2 lines
No EOL
1.4 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{723:function(t,s,o){"use strict";o.r(s),o.d(s,"default",function(){return U});var e,a,n,r=o(0),p=o.n(r),i=o(6),u=o.n(i),c=o(3),d=o.n(c),l=o(7),h=o.n(l),m=(o(1),o(12)),f=o(18),b=o(2),y=o.n(b),I=o(17),w=o.n(I),g=o(194),v=o(26),j=o(4),M=o(693),O=o(193),R=o(196),S=o(195),U=Object(m.connect)(function(t,s){return{accountIds:t.getIn(["user_lists","reblogged_by",s.params.statusId])}})((n=a=function(t){function s(){return u()(this,s),d()(this,t.apply(this,arguments))}return h()(s,t),s.prototype.componentWillMount=function(){this.props.dispatch(Object(v.m)(this.props.params.statusId))},s.prototype.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(v.m)(t.params.statusId))},s.prototype.render=function(){var t=this.props,s=t.shouldUpdateScroll,o=t.accountIds;if(!o)return p()(O.a,{},void 0,p()(g.a,{}));var e=p()(j.b,{id:"status.reblogs.empty",defaultMessage:"No one has boosted this toot yet. When someone does, they will show up here."});return p()(O.a,{},void 0,p()(R.a,{}),p()(S.a,{scrollKey:"reblogs",shouldUpdateScroll:s,emptyMessage:e},void 0,o.map(function(t){return p()(M.a,{id:t,withNote:!1},t)})))},s}(f.a),a.propTypes={params:y.a.object.isRequired,dispatch:y.a.func.isRequired,shouldUpdateScroll:y.a.func,accountIds:w.a.list},e=n))||e}}]);
//# sourceMappingURL=reblogs.js.map