debian-mirror-gitlab/app/assets/javascripts/ide/commit_icon.js

12 lines
267 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import { commitItemIconMap } from './constants';
export default file => {
if (file.deleted) {
return commitItemIconMap.deleted;
} else if (file.tempFile && !file.prevPath) {
return commitItemIconMap.addition;
}
return commitItemIconMap.modified;
};