fix(xo-web/pool): disconnectServer → disableServer (#5671)
Fixes #5669
Introduced c7aaeca530
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
|
||||
> Users must be able to say: “I had this issue, happy to know it's fixed”
|
||||
|
||||
- [Pool] Fix `an error has occurred` when using the "Disconnect" button from the pool page [#5669](https://github.com/vatesfr/xen-orchestra/issues/5669) (PR [#5671](https://github.com/vatesfr/xen-orchestra/pull/5671))
|
||||
|
||||
### Packages to release
|
||||
|
||||
> Packages will be released in the order they are here, therefore, they should
|
||||
@@ -27,3 +29,5 @@
|
||||
> - major: if the change breaks compatibility
|
||||
>
|
||||
> In case of conflict, the highest (lowest in previous list) `$version` wins.
|
||||
|
||||
- xo-web patch
|
||||
|
||||
@@ -5,7 +5,7 @@ import React from 'react'
|
||||
import { createGetObjectsOfType, createSelector, isAdmin } from 'selectors'
|
||||
import { find } from 'lodash'
|
||||
import { addSubscriptions, connectStore, noop } from 'utils'
|
||||
import { addHostsToPool, disconnectServer, subscribeServers } from 'xo'
|
||||
import { addHostsToPool, disableServer, subscribeServers } from 'xo'
|
||||
|
||||
@connectStore({
|
||||
hosts: createGetObjectsOfType('host'),
|
||||
@@ -34,7 +34,7 @@ export default class PoolActionBar extends Component {
|
||||
(masterAddress, servers) => find(servers, { host: masterAddress })
|
||||
)
|
||||
|
||||
_disconnectServer = () => disconnectServer(this._getServer())
|
||||
_disconnectServer = () => disableServer(this._getServer())
|
||||
|
||||
render() {
|
||||
const { pool } = this.props
|
||||
|
||||
Reference in New Issue
Block a user