on master help sign in
- Make all actions available in offline mode
50edad7Chris Johnson
src/bridge/views/Point/Actions.js+2−3
@@ -10,7 +10,6 @@ import { Row, Col, H2, P } from '../../components/Base'
10import { Button } from '../../components/Base'
10import { Button } from '../../components/Base'
11import { ROUTE_NAMES } from '../../lib/router'
11import { ROUTE_NAMES } from '../../lib/router'
12
12
13−
14const isPlanet = point =>
13const isPlanet = point =>
15 parseInt(point, 10) > 65535
14 parseInt(point, 10) > 65535
16
15
@@ -137,7 +136,7 @@ const Actions = (props) => {
137 <Button
136 <Button
138 prop-size={'sm'}
137 prop-size={'sm'}
139 prop-type={'link'}
138 prop-type={'link'}
140− disabled={ !canAcceptTransfer }
139+ disabled={ online && !canAcceptTransfer }
141 onClick={ () => {
140 onClick={ () => {
142 pushRoute(ROUTE_NAMES.ACCEPT_TRANSFER)
141 pushRoute(ROUTE_NAMES.ACCEPT_TRANSFER)
143 }}
142 }}
@@ -159,7 +158,7 @@ const Actions = (props) => {
159 <Button
158 <Button
160 prop-size={'sm'}
159 prop-size={'sm'}
161 prop-type={'link'}
160 prop-type={'link'}
162− disabled={ !canGenKeyfile }
161+ disabled={ online && !canGenKeyfile }
163 onClick={ () => {
162 onClick={ () => {
164 pushRoute(ROUTE_NAMES.GEN_KEYFILE)
163 pushRoute(ROUTE_NAMES.GEN_KEYFILE)
165 }}
164 }}