From ac188eb6d9813510d2a886a07966e3f7437eb626 Mon Sep 17 00:00:00 2001 From: Apoorv Taneja Date: Thu, 18 Apr 2019 01:00:50 +0530 Subject: [PATCH] fixed (#958) --- client/modules/User/actions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/modules/User/actions.js b/client/modules/User/actions.js index ec825cd2..91e5f72b 100644 --- a/client/modules/User/actions.js +++ b/client/modules/User/actions.js @@ -2,6 +2,8 @@ import { browserHistory } from 'react-router'; import axios from 'axios'; import * as ActionTypes from '../../constants'; import { showErrorModal, justOpenedProject } from '../IDE/actions/ide'; +import { showToast, setToastText } from '../IDE/actions/toast'; + const __process = (typeof global !== 'undefined' ? global : window).process; const ROOT_URL = __process.env.API_URL; @@ -211,6 +213,8 @@ export function updateSettings(formValues) { .then((response) => { dispatch(updateSettingsSuccess(response.data)); browserHistory.push('/'); + dispatch(showToast(5500)); + dispatch(setToastText('Settings saved.')); }) .catch(response => Promise.reject(new Error(response.data.error))); }