Skip to content

Commit 411e1a4

Browse files
committed
Hide the Stickiness Configure button for Netris Load Balancers (#72)
1 parent a4e4ae9 commit 411e1a4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ui/src/views/network/LoadBalancing.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<template v-if="column.key === 'protocol'">
135135
{{ getCapitalise(record.protocol) }}
136136
</template>
137-
<template v-if="column.key === 'stickiness'">
137+
<template v-if="column.key === 'stickiness' && !this.isNetrisZone">
138138
<a-button @click="() => openStickinessModal(record.id)">
139139
{{ returnStickinessLabel(record.id) }}
140140
</a-button>
@@ -918,7 +918,8 @@ export default {
918918
expectedcode: undefined,
919919
urlpath: '/'
920920
},
921-
healthMonitorLoading: false
921+
healthMonitorLoading: false,
922+
isNetrisZone: false
922923
}
923924
},
924925
computed: {
@@ -1078,6 +1079,9 @@ export default {
10781079
id: this.resource.zoneid
10791080
}).then(response => {
10801081
this.lbProvider = response?.listzonesresponse?.zone?.[0]?.provider || null
1082+
if (this.lbProvider != null) {
1083+
this.isNetrisZone = this.lbProvider === 'Netris'
1084+
}
10811085
}).finally(() => {
10821086
this.zoneloading = false
10831087
if (this.lbProvider !== 'Netris') {

0 commit comments

Comments
 (0)