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