Merge "fix: fix the heat tab in the system info"

This commit is contained in:
Zuul 2022-07-25 07:45:01 +00:00 committed by Gerrit Code Review
commit af67087953

View File

@ -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;
} }
} }