diff options
author | Denys Mishunov <dmishunov@gitlab.com> | 2019-04-12 09:38:39 +0200 |
---|---|---|
committer | Denys Mishunov <dmishunov@gitlab.com> | 2019-04-12 09:38:39 +0200 |
commit | a2337543d97bad9e6f6f3cb4e9e011d0e5651577 (patch) | |
tree | 31866827979cb4781ca299867a38dd7edef20842 | |
parent | 209a171058d2124d079e2e2373d268f9c582471a (diff) | |
download | gitlab-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.js | 3 |
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}`]; |