18 lines
318 B
JavaScript
18 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;
|