diff --git a/client/coral-embed-stream/src/actions/asset.js b/client/coral-embed-stream/src/actions/asset.js
index 6acebeafb..1fc9f09f7 100644
--- a/client/coral-embed-stream/src/actions/asset.js
+++ b/client/coral-embed-stream/src/actions/asset.js
@@ -1,5 +1,5 @@
import * as actions from '../constants/asset';
-import {addNotification} from 'coral-framework/actions/notification';
+import {notify} from 'coral-framework/actions/notification';
import t from 'coral-framework/services/i18n';
@@ -16,7 +16,7 @@ export const updateConfiguration = (newConfig) => (dispatch, getState, {rest}) =
dispatch(updateAssetSettingsRequest());
rest(`/assets/${assetId}/settings`, {method: 'PUT', body: newConfig})
.then(() => {
- dispatch(addNotification('success', t('framework.success_update_settings')));
+ dispatch(notify('success', t('framework.success_update_settings')));
dispatch(updateAssetSettingsSuccess(newConfig));
})
.catch((error) => {
@@ -30,7 +30,7 @@ export const updateOpenStream = (closedBody) => (dispatch, getState, {rest}) =>
dispatch(fetchAssetRequest());
rest(`/assets/${assetId}/status`, {method: 'PUT', body: closedBody})
.then(() => {
- dispatch(addNotification('success', t('framework.success_update_settings')));
+ dispatch(notify('success', t('framework.success_update_settings')));
dispatch(fetchAssetSuccess(closedBody));
})
.catch((error) => {
diff --git a/client/coral-embed-stream/src/actions/auth.js b/client/coral-embed-stream/src/actions/auth.js
index 55f7eb546..bf1679b1c 100644
--- a/client/coral-embed-stream/src/actions/auth.js
+++ b/client/coral-embed-stream/src/actions/auth.js
@@ -2,7 +2,7 @@ import jwtDecode from 'jwt-decode';
import bowser from 'bowser';
import * as actions from '../constants/auth';
import * as Storage from 'coral-framework/helpers/storage';
-import {addNotification} from 'coral-framework/actions/notification';
+import {notify} from 'coral-framework/actions/notification';
import t from 'coral-framework/services/i18n';
@@ -387,7 +387,7 @@ export const editName = (username) => (dispatch, _, {rest}) => {
return rest('/account/username', {method: 'PUT', body: {username}})
.then(() => {
dispatch(editUsernameSuccess());
- dispatch(addNotification('success', t('framework.success_name_update')));
+ dispatch(notify('success', t('framework.success_name_update')));
})
.catch((error) => {
console.error(error);
diff --git a/client/coral-embed-stream/src/components/AllCommentsPane.js b/client/coral-embed-stream/src/components/AllCommentsPane.js
index c141f0618..cb7c3cbb5 100644
--- a/client/coral-embed-stream/src/components/AllCommentsPane.js
+++ b/client/coral-embed-stream/src/components/AllCommentsPane.js
@@ -87,7 +87,7 @@ class AllCommentsPane extends React.Component {
})
.catch((error) => {
this.setState({loadingState: 'error'});
- forEachError(error, ({msg}) => {this.props.addNotification('error', msg);});
+ forEachError(error, ({msg}) => {this.props.notify('error', msg);});
});
}
@@ -129,7 +129,7 @@ class AllCommentsPane extends React.Component {
ignoreUser,
setActiveReplyBox,
activeReplyBox,
- addNotification,
+ notify,
disableReply,
postComment,
asset,
@@ -166,7 +166,7 @@ class AllCommentsPane extends React.Component {
disableReply={disableReply}
setActiveReplyBox={setActiveReplyBox}
activeReplyBox={activeReplyBox}
- addNotification={addNotification}
+ notify={notify}
depth={0}
postComment={postComment}
asset={asset}
diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js
index bb6fee981..522e8f00b 100644
--- a/client/coral-embed-stream/src/components/Comment.js
+++ b/client/coral-embed-stream/src/components/Comment.js
@@ -152,7 +152,7 @@ export default class Comment extends React.Component {
deleteAction: PropTypes.func.isRequired,
parentId: PropTypes.string,
highlighted: PropTypes.string,
- addNotification: PropTypes.func.isRequired,
+ notify: PropTypes.func.isRequired,
postComment: PropTypes.func.isRequired,
depth: PropTypes.number.isRequired,
liveUpdates: PropTypes.bool,
@@ -205,7 +205,7 @@ export default class Comment extends React.Component {
onClickEdit (e) {
e.preventDefault();
if (!can(this.props.currentUser, 'INTERACT_WITH_COMMUNITY')) {
- this.props.addNotification('error', t('error.NOT_AUTHORIZED'));
+ this.props.notify('error', t('error.NOT_AUTHORIZED'));
return;
}
this.setState({isEditing: true});
@@ -235,7 +235,7 @@ export default class Comment extends React.Component {
})
.catch((error) => {
this.setState({loadingState: 'error'});
- forEachError(error, ({msg}) => {this.props.addNotification('error', msg);});
+ forEachError(error, ({msg}) => {this.props.notify('error', msg);});
});
emit('ui.Comment.showMoreReplies', {id});
return;
@@ -252,7 +252,7 @@ export default class Comment extends React.Component {
if (can(this.props.currentUser, 'INTERACT_WITH_COMMUNITY')) {
this.props.setActiveReplyBox(this.props.comment.id);
} else {
- this.props.addNotification('error', t('error.NOT_AUTHORIZED'));
+ this.props.notify('error', t('error.NOT_AUTHORIZED'));
}
return;
}
@@ -331,7 +331,7 @@ export default class Comment extends React.Component {
deleteAction,
disableReply,
maxCharCount,
- addNotification,
+ notify,
charCountEnable,
showSignInDialog,
liveUpdates,
@@ -475,7 +475,7 @@ export default class Comment extends React.Component {
+ notify={notify} />
}
{ !isActive &&
@@ -487,7 +487,7 @@ export default class Comment extends React.Component {
this.state.isEditing
?