@@ -261,7 +261,6 @@ export default {
},
filters: {
capitalise: val => {
- if (val === 'all') return this.$t('label.all')
return val.toUpperCase()
}
},
@@ -273,6 +272,10 @@ export default {
this.tabType = this.$parent.tab === this.$t('label.ingress.rule') ? 'ingress' : 'egress'
this.rules = this.tabType === 'ingress' ? this.resource.ingressrule : this.resource.egressrule
},
+ getCapitalise (val) {
+ if (val === 'all') return this.$t('label.all')
+ return val.toUpperCase()
+ },
handleAddRule () {
this.parentToggleLoading()
api(this.tabType === 'ingress' ? 'authorizeSecurityGroupIngress' : 'authorizeSecurityGroupEgress', {
diff --git a/ui/src/views/network/LoadBalancing.vue b/ui/src/views/network/LoadBalancing.vue
index 66dd0d8f618..c47ec4771d8 100644
--- a/ui/src/views/network/LoadBalancing.vue
+++ b/ui/src/views/network/LoadBalancing.vue
@@ -75,7 +75,7 @@
{{ returnAlgorithmName(record.algorithm) }}
- {{ record.protocol | capitalise }}
+ {{ getCapitalise(record.protocol) }}
openStickinessModal(record.id)">
@@ -535,12 +535,6 @@ export default {
this.fetchData()
}
},
- filters: {
- capitalise: val => {
- if (val === 'all') return this.$t('label.all')
- return val.toUpperCase()
- }
- },
methods: {
fetchData () {
this.fetchListTiers()
@@ -639,6 +633,10 @@ export default {
}
return 'Configure'
},
+ getCapitalise (val) {
+ if (val === 'all') return this.$t('label.all')
+ return val.toUpperCase()
+ },
openTagsModal (id) {
this.tagsModalLoading = true
this.tagsModalVisible = true
diff --git a/ui/src/views/network/PortForwarding.vue b/ui/src/views/network/PortForwarding.vue
index 1808309a623..14afb772af6 100644
--- a/ui/src/views/network/PortForwarding.vue
+++ b/ui/src/views/network/PortForwarding.vue
@@ -87,7 +87,7 @@
{{ record.publicport }} - {{ record.publicendport }}
- {{ record.protocol | capitalise }}
+ {{ getCapitalise(record.protocol) }}
@@ -381,12 +381,6 @@ export default {
this.fetchData()
}
},
- filters: {
- capitalise: val => {
- if (val === 'all') return this.$t('label.all')
- return val.toUpperCase()
- }
- },
methods: {
fetchData () {
this.fetchListTiers()
@@ -429,6 +423,10 @@ export default {
this.loading = false
})
},
+ getCapitalise (val) {
+ if (val === 'all') return this.$t('label.all')
+ return val.toUpperCase()
+ },
deleteRule (rule) {
this.loading = true
api('deletePortForwardingRule', { id: rule.id }).then(response => {