diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-03-11 16:52:17 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-03-11 16:52:17 +0300 |
commit | 31042747d92f24fb5cfa558a21f2e99b3e33aecb (patch) | |
tree | f9090e5dec9bffa5f7ab2b76d77787d304f9dc36 | |
parent | e8e25a0f405f866dced809cf626d18fcd7b33988 (diff) |
Create temp entry in Web IDE
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/project.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/project.js b/app/assets/javascripts/ide/stores/actions/project.js index 06ed5c0b572..a9de3ce975f 100644 --- a/app/assets/javascripts/ide/stores/actions/project.js +++ b/app/assets/javascripts/ide/stores/actions/project.js @@ -147,6 +147,8 @@ export const openBranch = ({ dispatch, state }, { projectId, branchId, basePath if (treeEntry) { dispatch('handleTreeEntryAction', treeEntry); + } else { + dispatch('createTempEntry', { name: path, type: 'blob' }); } } }) @@ -155,5 +157,5 @@ export const openBranch = ({ dispatch, state }, { projectId, branchId, basePath projectId, branchId, }); - }); + }) }; |