From 7d1b5399dbd72c1bc52fc0cd206102635bbcf287 Mon Sep 17 00:00:00 2001 From: Guy Marriott Date: Thu, 11 Oct 2018 17:47:15 +1300 Subject: [PATCH] FIX Toast notification for saving individual blocks now uses the correct title --- client/src/components/ElementActions/SaveAction.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/ElementActions/SaveAction.js b/client/src/components/ElementActions/SaveAction.js index 53e709d0..dfd04996 100644 --- a/client/src/components/ElementActions/SaveAction.js +++ b/client/src/components/ElementActions/SaveAction.js @@ -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'