Skip to content

Commit

Permalink
FIX Toast notification for saving individual blocks now uses the corr…
Browse files Browse the repository at this point in the history
…ect title
  • Loading branch information
ScopeyNZ committed Oct 16, 2018
1 parent 606ccab commit 7d1b539
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/ElementActions/SaveAction.js
Expand Up @@ -39,12 +39,14 @@ const SaveAction = (MenuComponent) => (props) => {
// rerunning the whole query
apolloClient.queryManager.reFetchObservableQueries();

const newTitle = formData[`PageElements_${id}_Title`];

$.noticeAdd({
text: i18n.inject(
i18n._t(
'SaveAction.SUCCESS_NOTIFICATION',
'Saved \'{title}\' successfully'),
{ title }
{ title: newTitle }
),
stay: false,
type: 'success'
Expand Down

0 comments on commit 7d1b539

Please sign in to comment.