You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.1 KiB
1 lines
1.1 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{L9NX:function(f,a,e){"use strict";e.r(a);var l=e("fWQN"),c=e("mtLc"),m=e("yKVA"),p=e("879j"),E=e("q1tI"),h=e.n(E),O=e("9kvl"),u=e("s4NR"),R=e.n(u),v=function(o){Object(m.a)(r,o);var n=Object(p.a)(r);function r(){var i;Object(l.a)(this,r);for(var t=arguments.length,s=new Array(t),_=0;_<t;_++)s[_]=arguments[_];return i=n.call.apply(n,[this].concat(s)),i.state={isReady:!1},i}return Object(c.a)(r,[{key:"componentDidMount",value:function(){this.setState({isReady:!0});var t=this.props.dispatch;t&&(t({type:"user/fetchCurrent"}),t({type:"user/fetchLocation"}),t({type:"user/fetchRole"}),t({type:"user/fetchLevel"}))}},{key:"render",value:function(){var t=this.state.isReady,s=this.props,_=s.children,b=s.loading,d=s.currentUser,D=s.location;console.log(this.props);var M=d&&d.userid,y=Object(u.stringify)({redirect:window.location.href});return!D||!M&&b||!t?"":_}}]),r}(h.a.Component);a.default=Object(O.a)(function(o){var n=o.user,r=o.loading;return{currentUser:n.currentUser,loading:r.models.user,location:n.getLocation}})(v)}}]);
|