debian-mirror-gitlab/app/assets/javascripts/releases/stores/getters.js
2021-03-08 18:12:59 +05:30

11 lines
347 B
JavaScript

/**
* @returns {Boolean} `true` if all the feature flags
* required to enable the GraphQL endpoint are enabled
*/
export const useGraphQLEndpoint = (rootState) => {
return Boolean(
rootState.featureFlags.graphqlReleaseData &&
rootState.featureFlags.graphqlReleasesPage &&
rootState.featureFlags.graphqlMilestoneStats,
);
};