pleroma/priv/static/packs/flavours/glitch/async/favourites.js

2 lines
1.8 KiB
JavaScript
Raw Normal View History

2020-01-22 07:00:23 -08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{705:function(t,e,a){"use strict";a.r(e),a.d(e,"default",function(){return q});var s,n,o,c=a(0),i=a(2),r=a(7),u=a(1),p=a(3),d=a.n(p),l=a(12),f=a(5),h=a.n(f),b=a(18),j=a.n(b),m=a(293),O=a(49),v=a(459),y=a(662),w=a(664),I=a(6),g=a(19),k=a(963),R=Object(I.f)({heading:{id:"column.favourited_by",defaultMessage:"Favourited by"}}),q=Object(l.connect)(function(t,e){return{accountIds:t.getIn(["user_lists","favourited_by",e.params.statusId])}})(s=Object(I.g)((o=n=function(t){function e(){for(var e,a=arguments.length,s=new Array(a),n=0;n<a;n++)s[n]=arguments[n];return e=t.call.apply(t,[this].concat(s))||this,Object(u.a)(Object(i.a)(e),"handleHeaderClick",function(){e.column.scrollTop()}),Object(u.a)(Object(i.a)(e),"setRef",function(t){e.column=t}),e}Object(r.a)(e,t);var a=e.prototype;return a.componentWillMount=function(){this.props.accountIds||this.props.dispatch(Object(O.q)(this.props.params.statusId))},a.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(O.q)(t.params.statusId))},a.render=function(){var t=this.props,e=t.intl,a=t.accountIds;if(!a)return Object(c.a)(y.a,{},void 0,Object(c.a)(m.a,{}));var s=Object(c.a)(I.b,{id:"empty_column.favourites",defaultMessage:"No one has favourited this toot yet. When someone does, they will show up here."});return d.a.createElement(y.a,{ref:this.setRef},Object(c.a)(w.a,{icon:"star",title:e.formatMessage(R.heading),onClick:this.handleHeaderClick,showBackButton:!0}),Object(c.a)(k.a,{scrollKey:"favourites",emptyMessage:s},void 0,a.map(function(t){return Object(c.a)(v.a,{id:t,withNote:!1},t)})))},e}(g.a),Object(u.a)(n,"propTypes",{params:h.a.object.isRequired,dispatch:h.a.func.isRequired,accountIds:j.a.list,intl:h.a.object.isRequired}),s=o))||s)||s}}]);
2018-09-16 14:17:34 -07:00
//# sourceMappingURL=favourites.js.map