Skip to content

Commit

Permalink
sort
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuRA committed Feb 6, 2023
1 parent a5393a1 commit 54c3d50
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
12 changes: 6 additions & 6 deletions packages/xo-web/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ $select-input-height: 40px; // Bootstrap input height

.icon-warning-modal {
border-color: transparent transparent transparent transparent;
width: 0px;
height: 0px;
border-style: inset;
border-width: 0 10px 20px 10px;
float: left;
height: 0px;
transform: rotate(360deg);
width: 0px;
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
Expand All @@ -318,11 +318,11 @@ $select-input-height: 40px; // Bootstrap input height
}

.icon-warning-modal span {
color: white;
font-size: 0.75rem;
text-align: center;
font-weight: bold;
left: -3.25px;
position: relative;
margin: 0px;
color: white;
font-weight: bold;
position: relative;
text-align: center;
}
14 changes: 10 additions & 4 deletions packages/xo-web/src/xo-app/home/host-item.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import _ from 'intl'
import Component from 'base-component'
import InconsistentHostTimeWarning from 'inconsistent-host-time-warning'
import Ellipsis, { EllipsisContainer } from 'ellipsis'
import Icon from 'icon'
import Link, { BlockLink } from 'link'
Expand All @@ -12,7 +11,16 @@ import HomeTags from 'home-tags'
import Tooltip from 'tooltip'
import { Row, Col } from 'grid'
import { Text } from 'editable'
import { addTag, editHost, fetchHostStats, removeTag, startHost, stopHost, subscribeHvSupportedVersions } from 'xo'
import {
addTag,
editHost,
fetchHostStats,
isHostTimeConsistentWithXoaTime,
removeTag,
startHost,
stopHost,
subscribeHvSupportedVersions,
} from 'xo'
import { addSubscriptions, connectStore, formatSizeShort, hasLicenseRestrictions, osFamily } from 'utils'
import {
createDoesHostNeedRestart,
Expand All @@ -23,11 +31,9 @@ import {
} from 'selectors'

import MiniStats from './mini-stats'
import LicenseWarning from '../host/license-warning'
import styles from './index.css'

import IconWarningModal from '../../common/icon-warning-modal'
import { isHostTimeConsistentWithXoaTime } from '../../common/xo'

@addSubscriptions({
hvSupportedVersions: subscribeHvSupportedVersions,
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 @@ -102,12 +102,11 @@ export default class PoolItem extends Component {
if (isAdmin) {
const { icon, supportLevel } = reacletteState.poolLicenseInfoByPoolId[pool.id]
const level = supportLevel === 'total' ? 'success' : supportLevel === 'partial' ? 'warning' : 'danger'
const message = this._getPoolLicenseIconTooltip()
icons.push({
level,
render: (
<p>
{icon()} {message}
{icon()} {this._getPoolLicenseIconTooltip()}
</p>
),
})
Expand Down

0 comments on commit 54c3d50

Please sign in to comment.