Skip to content

Commit

Permalink
Send companion build version to the cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonnessjoen committed Apr 26, 2023
1 parent 2dfe1db commit 4156316
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Cloud/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class CloudController extends CoreBase {
}
}
const activeRegions = Object.values(this.regionInstances).filter((r) => r.state.enabled).length
this.setState({ canActivate: activeRegions >= 2 })
this.setState({ canActivate: activeRegions >= 2 })
}
}

Expand Down
1 change: 1 addition & 0 deletions lib/Cloud/Region.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ class CloudRegion {
token: this.cloud.data.token,
uuid: this.cloud.state.uuid,
companionId: this.cloud.companionId,
version: this.cloud.registry.appBuild,
})
this.logger.debug('Login ok')

Expand Down
2 changes: 0 additions & 2 deletions webui/src/Cloud/RegionPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ export class CloudRegionPanel extends Component {
color={this.state.connected ? 'success' : 'danger'}
checked={!!this.state.enabled}
onChange={(e) => this.cloudSetState({ enabled: e.target.checked })}
labelOff={'Off'}
labelOn={'On'}
disabled={this.props.disabled}
width={100}
/>{' '}
Expand Down

0 comments on commit 4156316

Please sign in to comment.