mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Remove managed configuration option from non android ent. apps in APPM UI
This commit is contained in:
parent
e612334fd4
commit
f4e3c75c0b
@ -185,15 +185,16 @@ class AppDetailsDrawer extends React.Component {
|
|||||||
window.location.origin + config.serverConfig.invoker.uri + config.serverConfig.invoker.publisher + "/applications/" + id,
|
window.location.origin + config.serverConfig.invoker.uri + config.serverConfig.invoker.publisher + "/applications/" + id,
|
||||||
data
|
data
|
||||||
).then(res => {
|
).then(res => {
|
||||||
this.props.onUpdateApp("name", name);
|
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
|
const app = res.data.data;
|
||||||
|
this.props.onUpdateApp("name", app.name);
|
||||||
notification["success"]({
|
notification["success"]({
|
||||||
message: 'Saved!',
|
message: 'Saved!',
|
||||||
description: 'App name updated successfully!'
|
description: 'App name updated successfully!'
|
||||||
});
|
});
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: false,
|
loading: false,
|
||||||
name: name,
|
name: app.name,
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -268,6 +269,7 @@ class AppDetailsDrawer extends React.Component {
|
|||||||
data
|
data
|
||||||
).then(res => {
|
).then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
|
const app = res.data.data;
|
||||||
this.props.onUpdateApp("categories", temporaryCategories);
|
this.props.onUpdateApp("categories", temporaryCategories);
|
||||||
notification["success"]({
|
notification["success"]({
|
||||||
message: 'Saved!',
|
message: 'Saved!',
|
||||||
@ -275,7 +277,7 @@ class AppDetailsDrawer extends React.Component {
|
|||||||
});
|
});
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: false,
|
loading: false,
|
||||||
categories: temporaryCategories,
|
categories: app.categories,
|
||||||
isCategoriesEditEnabled: false
|
isCategoriesEditEnabled: false
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -334,13 +336,14 @@ class AppDetailsDrawer extends React.Component {
|
|||||||
data
|
data
|
||||||
).then(res => {
|
).then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
|
const app = res.data.data;
|
||||||
notification["success"]({
|
notification["success"]({
|
||||||
message: 'Saved!',
|
message: 'Saved!',
|
||||||
description: 'App tags updated successfully!'
|
description: 'App tags updated successfully!'
|
||||||
});
|
});
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: false,
|
loading: false,
|
||||||
tags: temporaryTags,
|
tags: app.tags,
|
||||||
isTagsEditEnabled: false
|
isTagsEditEnabled: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -375,13 +378,14 @@ class AppDetailsDrawer extends React.Component {
|
|||||||
data
|
data
|
||||||
).then(res => {
|
).then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
|
const app = res.data.data;
|
||||||
notification["success"]({
|
notification["success"]({
|
||||||
message: 'Saved!',
|
message: 'Saved!',
|
||||||
description: 'App description updated successfully!'
|
description: 'App description updated successfully!'
|
||||||
});
|
});
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: false,
|
loading: false,
|
||||||
description: temporaryDescription,
|
description: app.description,
|
||||||
isDescriptionEditEnabled: false
|
isDescriptionEditEnabled: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -449,18 +453,15 @@ class AppDetailsDrawer extends React.Component {
|
|||||||
width={this.state.drawerWidth}
|
width={this.state.drawerWidth}
|
||||||
closable={false}
|
closable={false}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
visible={visible}
|
visible={visible}>
|
||||||
>
|
|
||||||
<Spin spinning={loading} delay={500}>
|
<Spin spinning={loading} delay={500}>
|
||||||
<div style={{textAlign: "center"}}>
|
<div style={{textAlign: "center"}}>
|
||||||
{avatar}
|
{avatar}
|
||||||
<Title editable={{onChange: this.handleNameSave}} level={2}>{name}</Title>
|
<Title editable={{onChange: this.handleNameSave}} level={2}>{name}</Title>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<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.isAndroidEnterpriseApp) &&
|
||||||
(config.androidEnterpriseToken !== null) &&
|
(config.androidEnterpriseToken !== null) &&
|
||||||
(
|
(
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user