Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2019-03-11 16:52:17 +0300
committerFatih Acet <acetfatih@gmail.com>2019-03-11 16:52:17 +0300
commit31042747d92f24fb5cfa558a21f2e99b3e33aecb (patch)
treef9090e5dec9bffa5f7ab2b76d77787d304f9dc36
parente8e25a0f405f866dced809cf626d18fcd7b33988 (diff)
Create temp entry in Web IDE
-rw-r--r--app/assets/javascripts/ide/stores/actions/project.js4
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,
});
- });
+ })
};