From 8cc9a7ea05743088238c237f9def3a7fc5fa130c Mon Sep 17 00:00:00 2001 From: Denys Mishunov Date: Tue, 10 Sep 2019 09:50:23 +0200 Subject: Cleaned file attributes After changing how the re-naming works, we don't need `moved` and `movedPath` attributes on file. At the same time `prevPath` should default to undefined to be more versatile --- .../javascripts/ide/components/ide_tree_list.vue | 7 ++---- app/assets/javascripts/ide/stores/actions/file.js | 5 ----- .../javascripts/ide/stores/mutations/file.js | 2 -- app/assets/javascripts/ide/stores/utils.js | 10 ++++----- .../javascripts/vue_shared/components/file_row.vue | 2 +- .../ide/components/ide_tree_list_spec.js | 14 ------------ spec/javascripts/ide/stores/utils_spec.js | 25 ---------------------- .../vue_shared/components/file_row_spec.js | 13 ----------- 8 files changed, 7 insertions(+), 71 deletions(-) diff --git a/app/assets/javascripts/ide/components/ide_tree_list.vue b/app/assets/javascripts/ide/components/ide_tree_list.vue index 1af86a94482..95782b2c88a 100644 --- a/app/assets/javascripts/ide/components/ide_tree_list.vue +++ b/app/assets/javascripts/ide/components/ide_tree_list.vue @@ -30,9 +30,6 @@ export default { showLoading() { return !this.currentTree || this.currentTree.loading; }, - actualTreeList() { - return this.currentTree.tree.filter(entry => !entry.moved); - }, }, mounted() { this.updateViewer(this.viewerType); @@ -57,9 +54,9 @@ export default {
-