Skip to content

Commit bede382

Browse files
committed
src: misc fixes on comparing against legacy UI
- Display source-nat for IP address if applicable - Use domainpath for accounts view - Remove makeredundant for guest network (invalid for shared network for example, most operators would rather enable it via an offering) - Search global settings by name, than keyword - Fix infra summary values to be under h1 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent c33facb commit bede382

7 files changed

Lines changed: 18 additions & 9 deletions

File tree

ui/src/components/view/InfoCard.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<a-tag v-if="resource.type">
4444
{{ resource.type }}
4545
</a-tag>
46+
<a-tag v-if="resource.issourcenat">
47+
{{ $t('label.issourcenat') }}
48+
</a-tag>
4649
<a-tag v-if="resource.broadcasturi">
4750
{{ resource.broadcasturi }}
4851
</a-tag>

ui/src/components/view/ListView.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@
133133
<router-link v-if="record.domainid && !record.domainid.includes(',') && $router.resolve('/domain/' + record.domainid).route.name !== '404'" :to="{ path: '/domain/' + record.domainid }">{{ text }}</router-link>
134134
<span v-else>{{ text }}</span>
135135
</span>
136+
<span slot="domainpath" slot-scope="text, record" href="javascript:;">
137+
<router-link v-if="record.domainid && !record.domainid.includes(',') && $router.resolve('/domain/' + record.domainid).route.name !== '404'" :to="{ path: '/domain/' + record.domainid }">{{ text }}</router-link>
138+
<span v-else>{{ text }}</span>
139+
</span>
136140
<a slot="zone" slot-scope="text, record" href="javascript:;">
137141
<router-link v-if="record.zoneid && !record.zoneid.includes(',') && $router.resolve('/zone/' + record.zoneid).route.name !== '404'" :to="{ path: '/zone/' + record.zoneid }">{{ text }}</router-link>
138142
<span v-else>{{ text }}</span>

ui/src/config/section/account.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export default {
2020
title: 'label.accounts',
2121
icon: 'team',
2222
permission: ['listAccounts'],
23-
columns: ['name', 'state', 'rolename', 'roletype', 'domain'],
24-
details: ['name', 'id', 'rolename', 'roletype', 'domain', 'networkdomain', 'iptotal', 'vmtotal', 'volumetotal', 'receivedbytes', 'sentbytes', 'vmlimit', 'iplimit', 'volumelimit', 'snapshotlimit', 'templatelimit', 'vpclimit', 'cpulimit', 'memorylimit', 'networklimit', 'primarystoragelimit', 'secondarystoragelimit'],
23+
columns: ['name', 'state', 'rolename', 'roletype', 'domainpath'],
24+
details: ['name', 'id', 'rolename', 'roletype', 'domainpath', 'networkdomain', 'iptotal', 'vmtotal', 'volumetotal', 'receivedbytes', 'sentbytes', 'vmlimit', 'iplimit', 'volumelimit', 'snapshotlimit', 'templatelimit', 'vpclimit', 'cpulimit', 'memorylimit', 'networklimit', 'primarystoragelimit', 'secondarystoragelimit'],
2525
related: [{
2626
name: 'accountuser',
2727
title: 'label.users',
@@ -32,15 +32,15 @@ export default {
3232
name: 'details',
3333
component: () => import('@/components/view/DetailsTab.vue')
3434
},
35-
{
36-
name: 'certificate',
37-
component: () => import('@/views/iam/SSLCertificateTab.vue')
38-
},
3935
{
4036
name: 'limits',
4137
show: (record, route, user) => { return ['Admin'].includes(user.roletype) },
4238
component: () => import('@/components/view/ResourceLimitTab.vue')
4339
},
40+
{
41+
name: 'certificate',
42+
component: () => import('@/views/iam/SSLCertificateTab.vue')
43+
},
4444
{
4545
name: 'settings',
4646
component: () => import('@/components/view/SettingsTab.vue'),

ui/src/config/section/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default {
7272
icon: 'sync',
7373
label: 'label.restart.network',
7474
dataView: true,
75-
args: ['makeredundant', 'cleanup']
75+
args: ['cleanup']
7676
},
7777
{
7878
api: 'replaceNetworkACLList',

ui/src/views/AutogenView.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ export default {
459459
params.name = this.searchQuery
460460
} else if (this.apiName === 'quotaEmailTemplateList') {
461461
params.templatetype = this.searchQuery
462+
} else if (this.apiName === 'listConfigurations') {
463+
params.name = this.searchQuery
462464
} else {
463465
params.keyword = this.searchQuery
464466
}

ui/src/views/dashboard/CapacityDashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
:key="stat.type">
5555
<chart-card :loading="loading">
5656
<div class="capacity-dashboard-chart-card-inner">
57-
<h4>{{ $t(ts[stat.name]) }}</h4>
57+
<h3>{{ $t(ts[stat.name]) }}</h3>
5858
<a-progress
5959
type="dashboard"
6060
:status="getStatus(parseFloat(stat.percentused))"

ui/src/views/infra/InfraSummary.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<div class="chart-card-inner">
150150
<router-link :to="{ name: section.substring(0, section.length - 1) }">
151151
<h2>{{ $t(routes[section].title) }}</h2>
152-
<h1><a-icon :type="routes[section].icon" /> {{ stats[section] }}</h1>
152+
<h2><a-icon :type="routes[section].icon" /> {{ stats[section] }}</h2>
153153
</router-link>
154154
</div>
155155
</chart-card>

0 commit comments

Comments
 (0)