feat(xo-web): display maintenance mode badge next to the SR name (#6313)

This commit is contained in:
Mathieu 2022-07-01 16:22:45 +02:00 committed by GitHub
parent 4d3dc0c5f7
commit c7192ed3bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,8 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [SR] When SR is in maintenance, add "Maintenance mode" badge next to its name (PR [#6313](https://github.com/vatesfr/xen-orchestra/pull/6313))
### Bug fixes
> Users must be able to say: “I had this issue, happy to know it's fixed”
@ -27,4 +29,6 @@
<!--packages-start-->
- xo-web minor
<!--packages-end-->

View File

@ -97,6 +97,7 @@ export default class Sr extends Component {
<Col mediumSize={6} className='header-title'>
<h2>
<Icon icon='sr' /> <Text value={sr.name_label} onChange={nameLabel => editSr(sr, { nameLabel })} />
{sr.inMaintenanceMode && <span className='tag tag-pill tag-warning ml-1'>{_('maintenanceMode')}</span>}
</h2>
<Copiable tagName='pre' className='text-muted mb-0'>
{sr.uuid}