Skip to content

Commit 84748aa

Browse files
committed
add ui flag
1 parent 626ca68 commit 84748aa

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ui/public/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
]
9696
},
9797
"plugins": [],
98+
"allowMakingRouterRedundant": false,
9899
"apidocs": true,
99100
"basicZoneEnabled": true,
100101
"multipleServer": false,

ui/src/config/section/network.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import store from '@/store'
2020
import tungsten from '@/assets/icons/tungsten.svg?inline'
2121
import { isAdmin } from '@/role'
2222
import { isZoneCreated } from '@/utils/zone'
23+
import { vueProps } from '@/vue-app'
2324

2425
export default {
2526
name: 'network',
@@ -171,7 +172,7 @@ export default {
171172
if (isGroupAction || record.vpcid == null) {
172173
fields.push('cleanup')
173174
}
174-
if (!record.redundantrouter) {
175+
if (!record.redundantrouter && vueProps.$config.allowMakingRouterRedundant) {
175176
fields.push('makeredundant')
176177
}
177178
fields.push('livepatch')

0 commit comments

Comments
 (0)