summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/repo_mixin.js
blob: be5df90b56bf7cbaa45c33b780b983d148a6f486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Store from './repo_store';

const RepoMixin = {
  computed: {
    isMini() {
      return !!Store.openedFiles.length;
    },

    changedFiles() {
      const changedFileList = this.openedFiles
      .filter(file => file.changed);
      return changedFileList;
    },
  },
};

export default RepoMixin;