Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(xo-web/home/pool): switch alert support from 'danger' to 'warning' #6849

Merged
merged 5 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

- [Proxy] Make proxy address editable (PR [#6816](https://github.com/vatesfr/xen-orchestra/pull/6816))
- [Home/Host] Displays a warning for hosts with HVM disabled [#6823](https://github.com/vatesfr/xen-orchestra/issues/6823) (PR [#6834](https://github.com/vatesfr/xen-orchestra/pull/6834))
- [Home/Pool] `No XCP-ng Pro support enabled on this pool` alert is considered as warning instead of an error (PR [#6849](https://github.com/vatesfr/xen-orchestra/pull/6849))
MathieuRA marked this conversation as resolved.
Show resolved Hide resolved

### Bug fixes

Expand Down
3 changes: 1 addition & 2 deletions packages/xo-web/src/xo-app/home/pool-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ export default class PoolItem extends Component {
if (isAdmin && this._isXcpngPool()) {
const { icon, supportLevel } = poolLicenseInfo
if (supportLevel !== 'total') {
const level = supportLevel === 'partial' || getXoaPlan() === SOURCES ? 'warning' : 'danger'
alerts.push({
level,
level: 'warning',
render: (
<p>
{icon()} {this._getPoolLicenseIconTooltip()}
Expand Down
2 changes: 1 addition & 1 deletion packages/xo-web/src/xo-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const ICON_POOL_LICENSE = {
),
any: () => (
<WrapperIconPoolLicense>
<Icon icon='alarm' className='text-danger' />
<Icon icon='alarm' className='text-warning' />
</WrapperIconPoolLicense>
),
}
Expand Down