diff options
Diffstat (limited to 'app/assets/javascripts/boards/constants.js')
-rw-r--r-- | app/assets/javascripts/boards/constants.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/constants.js b/app/assets/javascripts/boards/constants.js index 65ebfe7be6c..4ebd30fe67b 100644 --- a/app/assets/javascripts/boards/constants.js +++ b/app/assets/javascripts/boards/constants.js @@ -1,4 +1,9 @@ import { __ } from '~/locale'; +import updateEpicSubscriptionMutation from '~/sidebar/queries/update_epic_subscription.mutation.graphql'; +import updateEpicTitleMutation from '~/sidebar/queries/update_epic_title.mutation.graphql'; +import boardBlockingIssuesQuery from './graphql/board_blocking_issues.query.graphql'; +import issueSetSubscriptionMutation from './graphql/issue_set_subscription.mutation.graphql'; +import issueSetTitleMutation from './graphql/issue_set_title.mutation.graphql'; export const issuableTypes = { issue: 'issue', @@ -45,3 +50,27 @@ export default { BoardType, ListType, }; + +export const blockingIssuablesQueries = { + [issuableTypes.issue]: { + query: boardBlockingIssuesQuery, + }, +}; + +export const titleQueries = { + [issuableTypes.issue]: { + mutation: issueSetTitleMutation, + }, + [issuableTypes.epic]: { + mutation: updateEpicTitleMutation, + }, +}; + +export const subscriptionQueries = { + [issuableTypes.issue]: { + mutation: issueSetSubscriptionMutation, + }, + [issuableTypes.epic]: { + mutation: updateEpicSubscriptionMutation, + }, +}; |