Simplifying broadcasts (removing silly action namespacing)

This commit is contained in:
James Barnsley
2018-03-21 08:45:22 +13:00
parent 4b5c8a4420
commit 1761456e76
10 changed files with 1966 additions and 1022 deletions

View File

@ -22,6 +22,7 @@ export default class extends React.Component{
}
render(){
console.log(this.props.data)
if (!this.props.data || !this.props.data.user || !this.props.data.authorization){
return null
}

View File

@ -19,10 +19,10 @@ class AuthorizationModal_Send extends React.Component{
e.preventDefault()
this.props.pusherActions.deliverMessage(
connection_id,
'spotify.authorizationReceived',
'spotify_authorization_received',
{
authorization: this.props.authorization,
me: this.props.me
user: this.props.me
}
);
this.props.uiActions.closeModal()