diff options
author | Phil Hughes <me@iamphill.com> | 2018-02-06 10:46:10 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-02-07 09:10:05 +0000 |
commit | d7f81076836755ee8369688baf198b7079b5deb6 (patch) | |
tree | 63411d4e3f83876fb90801c985d645cb27e1ab7b | |
parent | f3f855846850483c8a0fdfb6041d24ad086d5188 (diff) | |
download | gitlab-ce-ide-close-changed-files.tar.gz |
removed changedFiles getteride-close-changed-files
-rw-r--r-- | app/assets/javascripts/ide/stores/getters.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/ide/stores/getters.js b/app/assets/javascripts/ide/stores/getters.js index 4073aafe979..3b6b5a8d05b 100644 --- a/app/assets/javascripts/ide/stores/getters.js +++ b/app/assets/javascripts/ide/stores/getters.js @@ -1,5 +1,3 @@ -export const changedFiles = state => state.changedFiles; - export const activeFile = state => state.openFiles.find(file => file.active) || null; export const activeFileExtension = (state) => { @@ -14,6 +12,6 @@ export const canEditFile = (state) => { (currentActiveFile && !currentActiveFile.renderError && !currentActiveFile.binary); }; -export const addedFiles = state => changedFiles(state).filter(f => f.tempFile); +export const addedFiles = state => state.changedFiles.filter(f => f.tempFile); -export const modifiedFiles = state => changedFiles(state).filter(f => !f.tempFile); +export const modifiedFiles = state => state.changedFiles.filter(f => !f.tempFile); |