aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js')
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js
index 09e0b499..3b7e17b4 100644
--- a/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js
+++ b/workflow-designer-ui/src/main/frontend/src/features/workflow/workflowReducer.js
@@ -13,7 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-import { WORKFLOW_INPUT_CHANGE } from 'features/workflow/create/createWorkflowConstants';
+
+import { I18n } from 'react-redux-i18n';
+import {
+ WORKFLOW_INPUT_CHANGE,
+ EMPTY_NAME_ERROR
+} from 'features/workflow/create/createWorkflowConstants';
import {
SET_WORKFLOW,
CLEAR_WORKFLOW_DATA
@@ -32,6 +37,11 @@ function workflowReducer(state = {}, action) {
return {
...action.payload
};
+ case EMPTY_NAME_ERROR:
+ return {
+ ...state,
+ error: I18n.t('workflow.errorMessages.emptyName')
+ };
default:
return state;
}