feat: created the rename action on the machine status page
fix: added missing 'shutdown' action on the MachineActions enum of the gql schema style: set the Edit icon for the rename action style: fixed first and last action buttons spacing
This commit is contained in:
parent
79298d5dec
commit
bbf98b4d52
5 changed files with 75 additions and 23 deletions
|
|
@ -212,15 +212,17 @@ const typeDefs = gql`
|
|||
}
|
||||
|
||||
enum MachineAction {
|
||||
rename
|
||||
emptyCashInBills
|
||||
resetCashOutBills
|
||||
unpair
|
||||
reboot
|
||||
shutdown
|
||||
restartServices
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
machineAction(deviceId:ID!, action: MachineAction!, cassette1: Int, cassette2: Int): Machine
|
||||
machineAction(deviceId:ID!, action: MachineAction!, cassette1: Int, cassette2: Int, newName: String): Machine
|
||||
machineSupportLogs(deviceId: ID!): SupportLogsResponse
|
||||
serverSupportLogs: SupportLogsResponse
|
||||
setCustomer(customerId: ID!, customerInput: CustomerInput): Customer
|
||||
|
|
@ -262,7 +264,7 @@ const resolvers = {
|
|||
accounts: () => settingsLoader.loadAccounts()
|
||||
},
|
||||
Mutation: {
|
||||
machineAction: (...[, { deviceId, action, cassette1, cassette2 }]) => machineAction({ deviceId, action, cassette1, cassette2 }),
|
||||
machineAction: (...[, { deviceId, action, cassette1, cassette2, newName }]) => machineAction({ deviceId, action, cassette1, cassette2, newName }),
|
||||
machineSupportLogs: (...[, { deviceId }]) => supportLogs.insert(deviceId),
|
||||
createPairingTotem: (...[, { name }]) => pairing.totem(name),
|
||||
serverSupportLogs: () => serverLogs.insert(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue