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
This commit is contained in:
Jen Kagan 2016-11-02 17:35:47 -04:00 committed by Cassie Tarakajian
parent 3a8e67d484
commit 93f871e857
1 changed files with 1 additions and 1 deletions

View File

@ -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}`);