diff --git a/ui/src/config/section/iam.js b/ui/src/config/section/iam.js index d910392056a..3f00ae7c46e 100644 --- a/ui/src/config/section/iam.js +++ b/ui/src/config/section/iam.js @@ -220,6 +220,13 @@ export default { permission: ['listRoles'], columns: ['name', 'type', 'description'], details: ['name', 'id', 'type', 'description'], + tabs: [{ + name: 'details', + component: () => import('@/components/view/DetailsTab.vue') + }, { + name: 'rules', + component: () => import('@/views/iam/RolePermissionTab.vue') + }], actions: [ { api: 'createRole', diff --git a/ui/src/views/iam/RolePermissionTab.vue b/ui/src/views/iam/RolePermissionTab.vue new file mode 100644 index 00000000000..762c669100d --- /dev/null +++ b/ui/src/views/iam/RolePermissionTab.vue @@ -0,0 +1,52 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + + + + + + diff --git a/ui/src/views/infra/InfraSummary.vue b/ui/src/views/infra/InfraSummary.vue index d918b2abdb5..462678f8930 100644 --- a/ui/src/views/infra/InfraSummary.vue +++ b/ui/src/views/infra/InfraSummary.vue @@ -16,7 +16,39 @@ // under the License. @@ -59,18 +71,21 @@ import { api } from '@/api' import router from '@/router' +import Breadcrumb from '@/components/widgets/Breadcrumb' import ChartCard from '@/components/widgets/ChartCard' export default { name: 'InfraSummary', components: { + Breadcrumb, ChartCard }, data () { return { loading: true, - sections: ['zones', 'pods', 'clusters', 'hosts', 'storagepools', 'imagestores', 'systemvms', 'routers', 'cpusockets', 'managementservers', 'alerts'], routes: {}, + sections: ['zones', 'pods', 'clusters', 'hosts', 'storagepools', 'imagestores', 'systemvms', 'routers', 'cpusockets', 'managementservers', 'alerts'], + sslFormVisible: false, stats: {} } }, @@ -99,6 +114,9 @@ export default { }).finally(f => { this.loading = false }) + }, + handleSslForm (e) { + console.log(e) } } }