can now to npm run start-dev to run local front end with the development database
This commit is contained in:
parent
b5fe74664c
commit
c636737718
4 changed files with 11 additions and 12 deletions
|
|
@ -42,15 +42,6 @@ export default function DevicePage() {
|
|||
|
||||
const loadDevice = () => {
|
||||
if (loading) return
|
||||
// if (state?.device && parseInt(state.device.settings.deviceId) === device.id()) return
|
||||
// deviceAPI.get(deviceID, false, getContextKeys(), getContextTypes()).then(resp => {
|
||||
// setDevice(Device.create(resp.data))
|
||||
// console.log(resp.data)
|
||||
// }).catch(() => {
|
||||
// snackbar.error("Error loading device.")
|
||||
// }).finally(() => {
|
||||
// setLoading(false)
|
||||
// })
|
||||
|
||||
setLoading(true)
|
||||
deviceAPI.getPageData(deviceID, getContextKeys(), getContextTypes()).then(resp => {
|
||||
|
|
|
|||
|
|
@ -182,6 +182,7 @@ export default function Devices() {
|
|||
}
|
||||
|
||||
const loadDevices = () => {
|
||||
console.log("loading devices")
|
||||
setDevicesLoading(true)
|
||||
deviceAPI.list(
|
||||
limit,
|
||||
|
|
@ -408,7 +409,7 @@ export default function Devices() {
|
|||
mode={groupSettingsMode}
|
||||
isDialogOpen={groupSettingsIsOpen}
|
||||
closeDialogCallback={closeGroupSettings}
|
||||
refreshCallback={loadGroups}
|
||||
refreshCallback={loadDevices}
|
||||
canEdit={true}
|
||||
/>
|
||||
</PageContainer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue