debian-mirror-gitlab/app/assets/javascripts/milestones/stores/getters.js
2021-01-30 21:13:34 +05:30

6 lines
342 B
JavaScript

/** Returns `true` if there is at least one in-progress request */
export const isLoading = ({ requestCount }) => requestCount > 0;
/** Returns `true` if there is a group ID and group milestones are available */
export const groupMilestonesEnabled = ({ groupId, groupMilestonesAvailable }) =>
Boolean(groupId && groupMilestonesAvailable);