diff --git a/admin-ui/app/routes/Apps/Gluu/styles/applicationstyle.js b/admin-ui/app/routes/Apps/Gluu/styles/applicationstyle.js index ddb5c7372..33084b709 100644 --- a/admin-ui/app/routes/Apps/Gluu/styles/applicationstyle.js +++ b/admin-ui/app/routes/Apps/Gluu/styles/applicationstyle.js @@ -20,8 +20,8 @@ export default { paddingLeft: '20px', paddingRight: '30px', color: 'white', - fontSize:'1.5em', - fontWeight: 'bold' + fontSize: '1.5em', + fontWeight: 'bold', }, healthDown: { background: 'rgb(241 35 32)', @@ -33,5 +33,9 @@ export default { minHeight: '70vh', borderRadius: 24, padding: 12, - } + }, + licensePanel: { + backgroundColor: '#F5F5F5', + float: 'left', + }, } diff --git a/admin-ui/app/routes/License/LicenseDetailsPage.js b/admin-ui/app/routes/License/LicenseDetailsPage.js index e5a6e20cc..0ea28bfef 100644 --- a/admin-ui/app/routes/License/LicenseDetailsPage.js +++ b/admin-ui/app/routes/License/LicenseDetailsPage.js @@ -5,16 +5,8 @@ import applicationStyle from 'Routes/Apps/Gluu/styles/applicationstyle' import GluuFormDetailRow from 'Routes/Apps/Gluu/GluuFormDetailRow' import { LICENSE } from 'Utils/ApiResources' import { getLicenseDetails } from 'Redux/actions/LicenseDetailsActions' -import { - Card, - CardBody, - Container, - Row, - Col, -} from 'Components' -import { - buildPayload, -} from 'Utils/PermChecker' +import { Card, CardBody, Container, Row, Col } from 'Components' +import { buildPayload } from 'Utils/PermChecker' import GluuLoader from 'Routes/Apps/Gluu/GluuLoader' import Alert from '@material-ui/lab/Alert' import SetTitle from 'Utils/SetTitle' @@ -32,146 +24,140 @@ function LicenseDetailsPage({ item, loading, dispatch }) { }, []) function formatDate(date) { - if(date == undefined) { - return '' + if (!date) { + return '-' } - if(date.length > 10) { + if (date.length > 10) { return date.substring(0, 10) } - return '' - + return '-' } SetTitle(t('fields.licenseDetails')) - return ( - + - - {item.licenseEnabled ? ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ) : ( - - {!loading && - 'The License API is not enabled for this application.'} - - )} - + {item.licenseEnabled ? ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) : ( + + {!loading && + 'The License API is not enabled for this application.'} + + )} - + ) }