debian-mirror-gitlab/app/assets/javascripts/repo/mixins/repo_mixin.js
2017-09-10 17:25:29 +05:30

17 lines
318 B
JavaScript

import Store from '../stores/repo_store';
const RepoMixin = {
computed: {
isMini() {
return !!Store.openedFiles.length;
},
changedFiles() {
const changedFileList = this.openedFiles
.filter(file => file.changed);
return changedFileList;
},
},
};
export default RepoMixin;