fix: remove the heat page in the administrator
Remove the heat page and menu in the administrator, because the heat api has a problem with the permission determination of the scope.system.all=true level. Change-Id: I4438c205056004e95176852697e7d92f0bd316e9
This commit is contained in:
parent
ca4bb7baf2
commit
450f62a0bb
@ -21,7 +21,6 @@ import {
|
|||||||
MonitorOutlined,
|
MonitorOutlined,
|
||||||
SettingOutlined,
|
SettingOutlined,
|
||||||
HomeOutlined,
|
HomeOutlined,
|
||||||
AppstoreOutlined,
|
|
||||||
SwitcherOutlined,
|
SwitcherOutlined,
|
||||||
ContainerOutlined,
|
ContainerOutlined,
|
||||||
DatabaseFilled,
|
DatabaseFilled,
|
||||||
@ -715,43 +714,47 @@ const renderMenu = (t) => {
|
|||||||
// },
|
// },
|
||||||
// ],
|
// ],
|
||||||
// },
|
// },
|
||||||
{
|
|
||||||
path: '/heat',
|
// remove heat menu in the administrator,
|
||||||
name: t('Orchestration'),
|
// because the heat api has a problem with the permission determination
|
||||||
key: 'heatAdmin',
|
// of the scope.system.all=true level.
|
||||||
endpoints: 'heat',
|
// {
|
||||||
icon: <AppstoreOutlined />,
|
// path: '/heat',
|
||||||
children: [
|
// name: t('Orchestration'),
|
||||||
{
|
// key: 'heatAdmin',
|
||||||
path: '/heat/stack-admin',
|
// endpoints: 'heat',
|
||||||
name: t('Stacks'),
|
// icon: <AppstoreOutlined />,
|
||||||
key: 'stackAdmin',
|
// children: [
|
||||||
level: 1,
|
// {
|
||||||
children: [
|
// path: '/heat/stack-admin',
|
||||||
{
|
// name: t('Stacks'),
|
||||||
path: /^\/heat\/stack-admin\/detail\/.[^/]+\/.[^/]+$/,
|
// key: 'stackAdmin',
|
||||||
name: t('Stack Detail'),
|
// level: 1,
|
||||||
key: 'stackDetailAdmin',
|
// children: [
|
||||||
level: 2,
|
// {
|
||||||
routePath: '/heat/stack-admin/detail/:id/:name',
|
// path: /^\/heat\/stack-admin\/detail\/.[^/]+\/.[^/]+$/,
|
||||||
},
|
// name: t('Stack Detail'),
|
||||||
{
|
// key: 'stackDetailAdmin',
|
||||||
path: '/heat/stack-admin/create',
|
// level: 2,
|
||||||
name: t('Create Stack'),
|
// routePath: '/heat/stack-admin/detail/:id/:name',
|
||||||
key: 'stackCreateAdmin',
|
// },
|
||||||
level: 2,
|
// {
|
||||||
},
|
// path: '/heat/stack-admin/create',
|
||||||
{
|
// name: t('Create Stack'),
|
||||||
path: /^\/heat\/stack-admin\/edit\/.[^/]+\/.[^/]+$/,
|
// key: 'stackCreateAdmin',
|
||||||
name: t('Update Template'),
|
// level: 2,
|
||||||
key: 'stackEditAdmin',
|
// },
|
||||||
level: 2,
|
// {
|
||||||
routePath: '/heat/stack-admin/edit/:id/:name',
|
// path: /^\/heat\/stack-admin\/edit\/.[^/]+\/.[^/]+$/,
|
||||||
},
|
// name: t('Update Template'),
|
||||||
],
|
// key: 'stackEditAdmin',
|
||||||
},
|
// level: 2,
|
||||||
],
|
// routePath: '/heat/stack-admin/edit/:id/:name',
|
||||||
},
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
path: '/database',
|
path: '/database',
|
||||||
name: t('Database'),
|
name: t('Database'),
|
||||||
|
@ -25,33 +25,36 @@ export default [
|
|||||||
component: BaseLayout,
|
component: BaseLayout,
|
||||||
routes: [
|
routes: [
|
||||||
{ path: `${PATH}/stack`, component: Stack, exact: true },
|
{ path: `${PATH}/stack`, component: Stack, exact: true },
|
||||||
{ path: `${PATH}/stack-admin`, component: Stack, exact: true },
|
|
||||||
{ path: `${PATH}/stack/create`, component: CreateStack, exact: true },
|
{ path: `${PATH}/stack/create`, component: CreateStack, exact: true },
|
||||||
{
|
|
||||||
path: `${PATH}/stack-admin/create`,
|
|
||||||
component: CreateStack,
|
|
||||||
exact: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: `${PATH}/stack/edit/:id/:name`,
|
path: `${PATH}/stack/edit/:id/:name`,
|
||||||
component: CreateStack,
|
component: CreateStack,
|
||||||
exact: true,
|
exact: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: `${PATH}/stack-admin/edit/:id/:name`,
|
|
||||||
component: CreateStack,
|
|
||||||
exact: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: `${PATH}/stack/detail/:id/:name`,
|
path: `${PATH}/stack/detail/:id/:name`,
|
||||||
component: StackDetail,
|
component: StackDetail,
|
||||||
exact: true,
|
exact: true,
|
||||||
},
|
},
|
||||||
{
|
// remove heat page in the administrator,
|
||||||
path: `${PATH}/stack-admin/detail/:id/:name`,
|
// because the heat api has a problem with the permission determination
|
||||||
component: StackDetail,
|
// of the scope.system.all=true level.
|
||||||
exact: true,
|
// { path: `${PATH}/stack-admin`, component: Stack, exact: true },
|
||||||
},
|
// {
|
||||||
|
// path: `${PATH}/stack-admin/create`,
|
||||||
|
// component: CreateStack,
|
||||||
|
// exact: true,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: `${PATH}/stack-admin/edit/:id/:name`,
|
||||||
|
// component: CreateStack,
|
||||||
|
// exact: true,
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// path: `${PATH}/stack-admin/detail/:id/:name`,
|
||||||
|
// component: StackDetail,
|
||||||
|
// exact: true,
|
||||||
|
// },
|
||||||
{ path: '*', component: E404 },
|
{ path: '*', component: E404 },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user