summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Mishunov <dmishunov@gitlab.com>2019-04-12 09:38:39 +0200
committerDenys Mishunov <dmishunov@gitlab.com>2019-04-12 09:38:39 +0200
commita2337543d97bad9e6f6f3cb4e9e011d0e5651577 (patch)
tree31866827979cb4781ca299867a38dd7edef20842
parent209a171058d2124d079e2e2373d268f9c582471a (diff)
downloadgitlab-ce-wip-web-ide-empty-state.tar.gz
Added new getter flag for empty repowip-web-ide-empty-state
-rw-r--r--app/assets/javascripts/ide/stores/getters.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/getters.js b/app/assets/javascripts/ide/stores/getters.js
index 490658a4543..7a88ac5b116 100644
--- a/app/assets/javascripts/ide/stores/getters.js
+++ b/app/assets/javascripts/ide/stores/getters.js
@@ -36,6 +36,9 @@ export const currentMergeRequest = state => {
export const currentProject = state => state.projects[state.currentProjectId];
+export const emptyRepo = state =>
+ state.projects[state.currentProjectId] && state.projects[state.currentProjectId].empty_repo;
+
export const currentTree = state =>
state.trees[`${state.currentProjectId}/${state.currentBranchId}`];