fix(xo-web/pool): disconnectServer → disableServer (#5671)

Fixes #5669
Introduced c7aaeca530
This commit is contained in:
Pierre Donias
2021-03-15 09:53:34 +01:00
committed by GitHub
parent 54f4734847
commit 482299e765
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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