From 51c64f3fc7180732621d60f939bfe6157165040f Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 21 Mar 2018 10:05:08 +0000 Subject: Added staged files state to IDE Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/4541 --- app/assets/javascripts/ide/stores/getters.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/assets/javascripts/ide/stores/getters.js') diff --git a/app/assets/javascripts/ide/stores/getters.js b/app/assets/javascripts/ide/stores/getters.js index eba325a31df..85f9b75636a 100644 --- a/app/assets/javascripts/ide/stores/getters.js +++ b/app/assets/javascripts/ide/stores/getters.js @@ -28,3 +28,5 @@ export const currentIcon = state => state.rightPanelCollapsed ? 'angle-double-left' : 'angle-double-right'; export const hasChanges = state => !!state.changedFiles.length; + +export const unstagedFiles = state => state.changedFiles.filter(f => !f.staged); -- cgit v1.2.1