Skip to content

Commit

Permalink
Resolvers for reordering macro buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
smotired committed Feb 15, 2022
1 parent 08b6be9 commit 36da7eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/typeDefs/macro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const schema = gql`
"""
Reorder Macros
"""
reorderMacroButton(configId: ID!, oldIndex: Int!, newIndex: Int!): String
reorderMacroAction(
configId: ID!
id: ID!
Expand Down
8 changes: 8 additions & 0 deletions src/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,7 @@ export type Mutation = {
setMacroButtonColor?: Maybe<Scalars['String']>;
updateMacroButtonActions?: Maybe<Scalars['String']>;
/** Reorder Macros */
reorderMacroButton?: Maybe<Scalars['String']>;
reorderMacroAction?: Maybe<Scalars['String']>;
triggerMacroButton?: Maybe<Scalars['String']>;
toggleStationMessageGroup?: Maybe<Scalars['String']>;
Expand Down Expand Up @@ -3316,6 +3317,13 @@ export type MutationUpdateMacroButtonActionsArgs = {
};


export type MutationReorderMacroButtonArgs = {
configId: Scalars['ID'];
oldIndex: Scalars['Int'];
newIndex: Scalars['Int'];
};


export type MutationReorderMacroActionArgs = {
configId: Scalars['ID'];
id: Scalars['ID'];
Expand Down
1 change: 1 addition & 0 deletions src/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ type Mutation {
updateMacroButtonActions(configId: ID!, id: ID!, actions: [ActionInput]): String

"""Reorder Macros"""
reorderMacroButton(configId: ID!, oldIndex: Int!, newIndex: Int!): String
reorderMacroAction(configId: ID!, id: ID!, oldIndex: Int!, newIndex: Int!): String
triggerMacroButton(simulatorId: ID!, configId: ID!, buttonId: ID!): String
toggleStationMessageGroup(stationSetId: ID!, station: String!, group: String!, state: Boolean!): String
Expand Down

0 comments on commit 36da7eb

Please sign in to comment.