Skip to content

Commit

Permalink
Remove downlink queue temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
vicmgs committed Apr 1, 2021
1 parent 0b1dad8 commit d4a4aca
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions assets/js/components/common/Downlink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Downlink extends Component {

componentDidMount() {
const { id, src, fetchDownlinkQueue, socket } = this.props
fetchDownlinkQueue()
// fetchDownlinkQueue()
this.showRefreshTimer = setTimeout(() => this.setState({ showRefresh: true }), REFRESH_TIME_TO_WAIT)

if (src === "DeviceShow") {
Expand Down Expand Up @@ -127,12 +127,17 @@ class Downlink extends Component {
)
}
</div>
<div style={{marginRight: 20, marginLeft: 20, marginTop: 25, marginBottom: 20 }}>
<Text style={{ color: '#40A9FF', fontWeight: 500, fontSize: 18 }}>Downlink Queue: {this.state.queue.length}</Text>
</div>
{
false && (
<div style={{marginRight: 20, marginLeft: 20, marginTop: 25, marginBottom: 20 }}>
<Text style={{ color: '#40A9FF', fontWeight: 500, fontSize: 18 }}>Downlink Queue: {this.state.queue.length}</Text>
</div>
)
}

<div style={{ height: "calc(100vh - 435px)", overflow: 'scroll' }}>
{
this.state.queue.map((q, index) => (
false && this.state.queue.map((q, index) => (
<Card style={{marginRight: 20, marginLeft: 20 }} key={"downlink" + index}>
<Row gutter={[16, 16]}>
<Col span={16}>
Expand Down

0 comments on commit d4a4aca

Please sign in to comment.