Atualiza portal e admin com bloqueio de máquinas desativadas
This commit is contained in:
parent
e5085962e9
commit
630110bf3a
31 changed files with 1756 additions and 244 deletions
|
|
@ -35,6 +35,7 @@ type MachineContext = {
|
|||
assignedUserName: string | null
|
||||
assignedUserRole: string | null
|
||||
companyId: string | null
|
||||
isActive: boolean
|
||||
}
|
||||
|
||||
type MachineContextError = {
|
||||
|
|
@ -171,6 +172,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||
assignedUserName: string | null
|
||||
assignedUserRole: string | null
|
||||
companyId: string | null
|
||||
isActive?: boolean
|
||||
}
|
||||
setMachineContext({
|
||||
machineId: machine.id,
|
||||
|
|
@ -181,6 +183,7 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|||
assignedUserName: machine.assignedUserName ?? null,
|
||||
assignedUserRole: machine.assignedUserRole ?? null,
|
||||
companyId: machine.companyId ?? null,
|
||||
isActive: machine.isActive ?? true,
|
||||
})
|
||||
setMachineContextError(null)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue