Browse Source

disable firmware update

master
Gaëtan Renaudeau 7 years ago
parent
commit
9b1711b43d
  1. 3
      src/components/ManagerPage/Dashboard.js
  2. 1
      src/config/constants.js

3
src/components/ManagerPage/Dashboard.js

@ -2,6 +2,7 @@
import React from 'react'
import { translate } from 'react-i18next'
import { EXPERIMENTAL_FIRMWARE_UPDATE } from 'config/constants'
import type { T, Device } from 'types/common'
import Box from 'components/base/Box'
@ -34,6 +35,7 @@ const Dashboard = ({ device, deviceInfo, t }: Props) => (
</Text>
</Box>
<Box mt={5}>
{EXPERIMENTAL_FIRMWARE_UPDATE ? (
<FirmwareUpdate
infos={{
targetId: deviceInfo.targetId,
@ -41,6 +43,7 @@ const Dashboard = ({ device, deviceInfo, t }: Props) => (
}}
device={device}
/>
) : null}
</Box>
<Box mt={5}>
<AppsList device={device} targetId={deviceInfo.targetId} version={deviceInfo.version} />

1
src/config/constants.js

@ -67,6 +67,7 @@ export const SHOW_LEGACY_NEW_ACCOUNT = boolFromEnv('SHOW_LEGACY_NEW_ACCOUNT')
export const HIGHLIGHT_I18N = boolFromEnv('HIGHLIGHT_I18N')
export const DISABLE_ACTIVITY_INDICATORS = boolFromEnv('DISABLE_ACTIVITY_INDICATORS')
export const EXPERIMENTAL_CENTER_MODAL = boolFromEnv('EXPERIMENTAL_CENTER_MODAL')
export const EXPERIMENTAL_FIRMWARE_UPDATE = boolFromEnv('EXPERIMENTAL_FIRMWARE_UPDATE')
// Other constants

Loading…
Cancel
Save