debian-mirror-gitlab/app/assets/javascripts/milestones/stores/getters.js
2021-01-29 00:20:46 +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);