File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
client/modules/IDE/actions Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -215,32 +215,6 @@ export function autosaveProject() {
215
215
} ;
216
216
}
217
217
218
- export function createProject ( ) {
219
- return ( dispatch , getState ) => {
220
- const state = getState ( ) ;
221
- if ( state . project . isSaving ) {
222
- Promise . resolve ( ) ;
223
- return ;
224
- }
225
- dispatch ( startSavingProject ( ) ) ;
226
- axios . post ( `${ ROOT_URL } /projects` , { } , { withCredentials : true } )
227
- . then ( ( response ) => {
228
- dispatch ( endSavingProject ( ) ) ;
229
- dispatch ( setUnsavedChanges ( false ) ) ;
230
- browserHistory . push ( `/${ response . data . user . username } /sketches/${ response . data . id } ` ) ;
231
- const { hasChanges, synchedProject } = getSynchedProject ( getState ( ) , response . data ) ;
232
- if ( hasChanges ) {
233
- dispatch ( setUnsavedChanges ( true ) ) ;
234
- }
235
- dispatch ( setNewProject ( synchedProject ) ) ;
236
- } )
237
- . catch ( ( response ) => {
238
- dispatch ( endSavingProject ( ) ) ;
239
- dispatch ( projectSaveFail ( response . data ) ) ;
240
- } ) ;
241
- } ;
242
- }
243
-
244
218
export function exportProjectAsZip ( projectId ) {
245
219
const win = window . open ( `${ ROOT_URL } /projects/${ projectId } /zip` , '_blank' ) ;
246
220
win . focus ( ) ;
You can’t perform that action at this time.
0 commit comments