Fix UI issues in android enterprise

feature/appm-store/pbac
Dharmakeerthi Lasantha 5 years ago
commit 7bfbf5783a

@ -79,9 +79,10 @@ class App extends React.Component {
getAndroidEnterpriseToken = (config) => { getAndroidEnterpriseToken = (config) => {
axios.get( axios.get(
window.location.origin + config.serverConfig.invoker.uri + "/device-mgt/android/v1.0/enterprise/store-url?approveApps=true" + window.location.origin + config.serverConfig.invoker.uri +
"/device-mgt/android/v1.0/enterprise/store-url?approveApps=true" +
"&searchEnabled=true&isPrivateAppsEnabled=true&isWebAppEnabled=true&isOrganizeAppPageVisible=true&isManagedConfigEnabled=true" + "&searchEnabled=true&isPrivateAppsEnabled=true&isWebAppEnabled=true&isOrganizeAppPageVisible=true&isManagedConfigEnabled=true" +
"&host=https://localhost:9443", "&host=" + window.location.origin,
).then(res => { ).then(res => {
config.androidEnterpriseToken = res.data.data.token; config.androidEnterpriseToken = res.data.data.token;
this.setState({ this.setState({

@ -460,7 +460,9 @@ class AppDetailsDrawer extends React.Component {
<Divider/> <Divider/>
{/*display manage config button only if the app is public android app*/} {/*display manage config button only if the app is public android app*/}
{(app.type === "PUBLIC") && (app.deviceType === "android") && ( {(app.type === "PUBLIC") && (app.deviceType === "android") &&
(config.androidEnterpriseToken !== null) &&
(
<div> <div>
<div> <div>
<Text strong={true}>Set up managed configurations</Text> <Text strong={true}>Set up managed configurations</Text>
@ -490,7 +492,8 @@ class AppDetailsDrawer extends React.Component {
<div className="releases-details"> <div className="releases-details">
{(app.type === "ENTERPRISE") && ( {(app.type === "ENTERPRISE") && (
<Link to={`/publisher/apps/${app.deviceType}/${app.id}/add-release`}><Button htmlType="button" <Link to={`/publisher/apps/${app.deviceType}/${app.id}/add-release`}><Button
htmlType="button"
size="small">Add size="small">Add
new release</Button></Link>)} new release</Button></Link>)}
<List <List
@ -515,7 +518,8 @@ class AppDetailsDrawer extends React.Component {
<Divider type="vertical"/> <Divider type="vertical"/>
<IconText type="upload" text={release.releaseType}/> <IconText type="upload" text={release.releaseType}/>
<Divider type="vertical"/> <Divider type="vertical"/>
<IconText type="star-o" text={release.rating.toFixed(1)}/> <IconText type="star-o"
text={release.rating.toFixed(1)}/>
</div> </div>
} }
/> />

@ -20,6 +20,7 @@
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/>
<meta charset="utf-8"/>
<title>Entgra App Publisher</title> <title>Entgra App Publisher</title>
<script src="https://apis.google.com/js/client.js"></script> <script src="https://apis.google.com/js/client.js"></script>
</head> </head>

Loading…
Cancel
Save