debian-mirror-gitlab/app/assets/javascripts/milestones/stores/getters.js

7 lines
342 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
/** Returns `true` if there is at least one in-progress request */
export const isLoading = ({ requestCount }) => requestCount > 0;
2021-01-29 00:20:46 +05:30
/** Returns `true` if there is a group ID and group milestones are available */
export const groupMilestonesEnabled = ({ groupId, groupMilestonesAvailable }) =>
Boolean(groupId && groupMilestonesAvailable);