mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-28 03:13:13 +00:00
2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{773:function(t,e,a){"use strict";a.r(e),a.d(e,"default",(function(){return C}));var s,o,n,r=a(0),c=a(2),i=a(7),u=a(1),d=a(3),l=a.n(d),p=a(13),h=a(5),f=a.n(h),b=a(14),m=a.n(b),j=a(299),O=a(46),v=a(466),g=a(730),y=a(23),I=a(732),w=a(6),R=a(18),M=a(1022),k=Object(w.f)({heading:{id:"column.favourited_by",defaultMessage:"Favourited by"},refresh:{id:"refresh",defaultMessage:"Refresh"}}),C=Object(p.connect)((function(t,e){return{accountIds:t.getIn(["user_lists","favourited_by",e.params.statusId])}}))(s=Object(w.g)((n=o=function(t){function e(){for(var e,a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return e=t.call.apply(t,[this].concat(s))||this,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),"handleRefresh",(function(){e.props.dispatch(Object(O.q)(e.props.params.statusId))})),e}Object(i.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,s=t.multiColumn;if(!a)return Object(r.a)(g.a,{},void 0,Object(r.a)(j.a,{}));var o=Object(r.a)(w.b,{id:"empty_column.favourites",defaultMessage:"No one has favourited this toot yet. When someone does, they will show up here."});return l.a.createElement(g.a,{ref:this.setRef},Object(r.a)(I.a,{icon:"star",title:e.formatMessage(k.heading),onClick:this.handleHeaderClick,showBackButton:!0,multiColumn:s,extraButton:Object(r.a)("button",{className:"column-header__button",title:e.formatMessage(k.refresh),"aria-label":e.formatMessage(k.refresh),onClick:this.handleRefresh},void 0,Object(r.a)(y.a,{id:"refresh"}))}),Object(r.a)(M.a,{scrollKey:"favourites",emptyMessage:o,bindToDocument:!s},void 0,a.map((function(t){return Object(r.a)(v.a,{id:t,withNote:!1},t)}))))},e}(R.a),Object(u.a)(o,"propTypes",{params:f.a.object.isRequired,dispatch:f.a.func.isRequired,accountIds:m.a.list,multiColumn:f.a.bool,intl:f.a.object.isRequired}),s=n))||s)||s}}]);
|
|
//# sourceMappingURL=favourites.js.map
|