.then(() => NotificationActions.notify('Registration Successful'))
.catch((response) => { NotificationActions.notify(response.data.errors[0]); });
.catch(function() { NotificationActions.notify('Saving failed :('); });
.then(function() { NotificationActions.notify('Character Saved!'); NavigationActions.changeUrl(URL.page.character.index); })
.receive('error', () => { NavigationActions.changeUrl(URL.page.campaign.index); NotificationActions.notify('Could not join the session'); });
/** * @return { undefined } * @param { String } userName The name of a user who just left the game session */ function onUserLeft(userName) { NotificationActions.notify(userName + ' left'); }
/** * @return { undefined } * @param { String } userName The name of a user who just joined the game session */ function onUserJoined(userName) { NotificationActions.notify(userName + ' joined'); }