fix(xo-web/xoa/licenses): tip: XOA license mgmt not supported (#3714)

Fixes #3713
This commit is contained in:
Pierre Donias 2018-11-21 13:12:29 +01:00 committed by GitHub
parent 97a77b1a33
commit f2a38c5ddd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -2048,6 +2048,8 @@ const messages = {
licensesManage: 'Manage the licenses',
newLicense: 'New license',
refreshLicenses: 'Refresh',
xoaLicenseNotShown:
'XOA license management is not supported yet (current license: {plan})',
xosanLicenseRestricted: 'Limited size because XOSAN is in trial',
xosanAdminNoLicenseDisclaimer:
'You need a license on this SR to manage the XOSAN.',

View File

@ -1,11 +1,12 @@
import _ from 'intl'
import ActionButton from 'action-button'
import Component from 'base-component'
import Icon from 'icon'
import Link from 'link'
import React from 'react'
import renderXoItem from 'render-xo-item'
import SortedTable from 'sorted-table'
import { addSubscriptions, connectStore, ShortDate } from 'utils'
import { addSubscriptions, connectStore, getXoaPlan, ShortDate } from 'utils'
import { Container, Row, Col } from 'grid'
import { createSelector, createGetObjectsOfType } from 'selectors'
import { find, forEach } from 'lodash'
@ -202,6 +203,13 @@ export default class Licenses extends Component {
</ActionButton>
</Col>
</Row>
{/* TODO: Remove when XOA license management is available */}
<Row>
<Col>
<Icon icon='info' />{' '}
<em>{_('xoaLicenseNotShown', { plan: getXoaPlan() })}</em>
</Col>
</Row>
<Row>
<Col>
<SortedTable