mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-26 10:46:13 +00:00
2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{799: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(9),a(6),a(8)),u=a(1),d=a(3),l=a.n(d),p=a(15),h=a(5),f=a.n(h),b=a(16),m=a.n(b),j=a(305),O=a(47),v=a(471),g=a(756),y=a(25),I=a(758),w=a(7),R=a(21),M=a(1048);var 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){Object(i.a)(a,t);var e;e=a;function a(){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}var s=a.prototype;return s.componentWillMount=function(){this.props.accountIds||this.props.dispatch(Object(O.q)(this.props.params.statusId))},s.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(O.q)(t.params.statusId))},s.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)})))))},a}(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
|