From 93f871e8573e1c4d38728b16a1ba73a5ba94b890 Mon Sep 17 00:00:00 2001 From: Jen Kagan Date: Wed, 2 Nov 2016 17:35:47 -0400 Subject: [PATCH] Add the word "copy" to sketch name after duplicating (#176) * starting to work on clone project * adds the word *copy* to sketches that have been dupicated --- client/modules/IDE/actions/project.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/modules/IDE/actions/project.js b/client/modules/IDE/actions/project.js index 7e436bb6..8e2fc4f3 100644 --- a/client/modules/IDE/actions/project.js +++ b/client/modules/IDE/actions/project.js @@ -139,7 +139,7 @@ export function newProject() { export function cloneProject() { return (dispatch, getState) => { const state = getState(); - const formParams = Object.assign({}, { name: state.project.name }, { files: state.files }); + const formParams = Object.assign({}, { name: `${state.project.name} copy` }, { files: state.files }); axios.post(`${ROOT_URL}/projects`, formParams, { withCredentials: true }) .then(response => { browserHistory.push(`/projects/${response.data.id}`);