Skip to content

Commit 05ded97

Browse files
committed
frontend: use has-mobile-channel from api/devices
The hasMobileChannel api already exists and is used in different places, for example in BitBox01-settings.
1 parent 2c1c07f commit 05ded97

File tree

1 file changed

+2
-1
lines changed
  • frontends/web/src/routes/device/bitbox01/settings

1 file changed

+2
-1
lines changed

frontends/web/src/routes/device/bitbox01/settings/settings.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { route } from '../../../../utils/route';
2121
import { getDeviceInfo } from '../../../../api/bitbox01';
2222
import { apiGet } from '../../../../utils/request';
2323
import { apiWebsocket } from '../../../../utils/websocket';
24+
import { hasMobileChannel } from '@/api/devices';
2425
import { Guide } from '../../../../components/guide/guide';
2526
import { Entry } from '../../../../components/guide/entry';
2627
import { Header } from '../../../../components/layout';
@@ -79,7 +80,7 @@ class Settings extends Component {
7980
}
8081
});
8182

82-
apiGet('devices/' + this.props.deviceID + '/has-mobile-channel').then(mobileChannel => {
83+
hasMobileChannel(this.props.deviceID).then(mobileChannel => {
8384
this.setState({ mobileChannel });
8485
});
8586

0 commit comments

Comments
 (0)