debian-mirror-gitlab/app/assets/javascripts/repo/mixins/repo_mixin.js

18 lines
318 B
JavaScript
Raw Normal View History

2017-09-10 17:25:29 +05:30
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;