Merge "fix: fix the heat tab in the system info"
This commit is contained in:
commit
af67087953
@ -25,6 +25,10 @@ export class Service extends Base {
|
|||||||
return this.props.rootStore.checkEndpoint('cinder');
|
return this.props.rootStore.checkEndpoint('cinder');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get enableHeat() {
|
||||||
|
return this.props.rootStore.checkEndpoint('heat');
|
||||||
|
}
|
||||||
|
|
||||||
get tabs() {
|
get tabs() {
|
||||||
const tabs = [
|
const tabs = [
|
||||||
{
|
{
|
||||||
@ -42,19 +46,21 @@ export class Service extends Base {
|
|||||||
key: 'neutronAgent',
|
key: 'neutronAgent',
|
||||||
component: NeutronAgent,
|
component: NeutronAgent,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: t('Orchestration Services'),
|
|
||||||
key: 'heatService',
|
|
||||||
component: HeatService,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
if (this.enableCinder) {
|
if (this.enableCinder) {
|
||||||
tabs.splice(3, 0, {
|
tabs.push({
|
||||||
title: t('Block Storage Services'),
|
title: t('Block Storage Services'),
|
||||||
key: 'cinderService',
|
key: 'cinderService',
|
||||||
component: CinderService,
|
component: CinderService,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (this.enableHeat) {
|
||||||
|
tabs.push({
|
||||||
|
title: t('Orchestration Services'),
|
||||||
|
key: 'heatService',
|
||||||
|
component: HeatService,
|
||||||
|
});
|
||||||
|
}
|
||||||
return tabs;
|
return tabs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user