import { notificationActions } from 'shared/notifications/notificationsActions';
import { fetchWorkflow } from 'features/catalog/catalogActions';
import { WORKFLOW_STATUS } from 'features/workflow/workflowConstants';
+import { I18n } from 'react-redux-i18n';
export function* getOverview({ payload }) {
try {
yield call(overviewApi.updateWorkflow, action.payload);
yield put(
notificationActions.showSuccess({
- title: 'Update Workflow',
- message: 'Successfully updated'
+ title: I18n.t('workflow.overview.updateTitle'),
+ message: I18n.t('workflow.overview.updateNotification')
})
);
} catch (e) {
export function* archiveWorkflow(action) {
const { history } = action.payload;
yield archiveRestoreWorkflow(action);
+ yield put(
+ notificationActions.showSuccess({
+ title: I18n.t('workflow.overview.archiveTitle'),
+ message: I18n.t('workflow.overview.archiveNotification', {
+ name: action.payload.name
+ })
+ })
+ );
history.push('/');
}
"backBtnLabel": "WORKFLOW CATALOG",
"archived": "Archived",
"archive": "ARCHIVE",
+ "archiveTitle": "Archive",
+ "updateTitle": "Update Workflow",
+ "updateNotification": "Successfully updated",
+ "archiveNotification": "\"%{name}\" successfully archived",
"confirmArchive": "Are you sure you want to archive \"%{name}\"?"
},
"inputOutput": {