debian-mirror-gitlab/app/assets/javascripts/import_projects/utils.js

8 lines
264 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
import { STATUSES } from './constants';
// Will be expanded in future
// eslint-disable-next-line import/prefer-default-export
export function isProjectImportable(project) {
return project.importStatus === STATUSES.NONE && !project.importSource.incompatible;
}