feat(xo-web/vm): rescan ISO SRs available in console view (#5841)

See xoa-support#3896
See xoa-support#3888
See xoa-support#3909
Continuity of d7940292d0
Introduced by f3501acb64
This commit is contained in:
Mathieu 2021-07-16 17:02:10 +02:00 committed by GitHub
parent cbfa13a8b4
commit 12216f1463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View File

@ -8,11 +8,14 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it” > Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Netbox] Add information about a failed request to the error log to help better understand what happened [#5834](https://github.com/vatesfr/xen-orchestra/issues/5834) (PR [#5842](https://github.com/vatesfr/xen-orchestra/pull/5842)) - [Netbox] Add information about a failed request to the error log to help better understand what happened [#5834](https://github.com/vatesfr/xen-orchestra/issues/5834) (PR [#5842](https://github.com/vatesfr/xen-orchestra/pull/5842))
- [VM/console] Ability to rescan ISO SRs (PR [#5841](https://github.com/vatesfr/xen-orchestra/pull/5841))
### Bug fixes ### Bug fixes
> Users must be able to say: “I had this issue, happy to know it's fixed” > Users must be able to say: “I had this issue, happy to know it's fixed”
- [VM/disks] Fix `an error has occured` when self service user was on VM disk view (PR [#5841](https://github.com/vatesfr/xen-orchestra/pull/5841))
### Packages to release ### Packages to release
> Packages will be released in the order they are here, therefore, they should > Packages will be released in the order they are here, therefore, they should
@ -31,3 +34,4 @@
> In case of conflict, the highest (lowest in previous list) `$version` wins. > In case of conflict, the highest (lowest in previous list) `$version` wins.
- xo-server-netbox minor - xo-server-netbox minor
- xo-web minor

View File

@ -108,14 +108,16 @@ export default class IsoDevice extends Component {
srPredicate={this._getSrPredicate()} srPredicate={this._getSrPredicate()}
value={mountedIso} value={mountedIso}
/> />
<span className='input-group-btn'> {!useResourceSet && (
<ActionButton <span className='input-group-btn'>
disabled={isEmpty(isoSrs)} <ActionButton
handler={this._rescanIsoSrs} disabled={isEmpty(isoSrs)}
icon='refresh' handler={this._rescanIsoSrs}
tooltip={_('rescanIsoSrs')} icon='refresh'
/> tooltip={_('rescanIsoSrs')}
</span> />
</span>
)}
<span className='input-group-btn'> <span className='input-group-btn'>
<ActionButton disabled={!mountedIso} handler={this._handleEject} icon='vm-eject' /> <ActionButton disabled={!mountedIso} handler={this._handleEject} icon='vm-eject' />
</span> </span>