Skip to content

Commit 27408f7

Browse files
committed
retain mandatory field indicator, remove log
1 parent 068acba commit 27408f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ui/src/utils/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ export function toCsv ({ keys = null, data = null, columnDelimiter = ',', lineDe
104104
}
105105

106106
export function isValidIPv4Cidr (rule, value) {
107-
console.log('here')
108107
return new Promise((resolve, reject) => {
109108
if (!value) {
110-
reject(new Error('Required input'))
109+
reject(new Error())
111110
return
112111
}
113112
const cidrRegex = /^(\d{1,3}\.){3}\d{1,3}\/([0-9]|[1-2][0-9]|3[0-2])$/

ui/src/views/network/CreateVpc.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export default {
419419
},
420420
updateCidrRule () {
421421
if (!this.selectedVpcOfferingHavingRoutedNetworkMode) {
422-
this.rules.cidr = [{ validator: isValidIPv4Cidr }]
422+
this.rules.cidr = [{ required: true, message: this.$t('message.error.required.input') }, { validator: isValidIPv4Cidr }]
423423
} else {
424424
delete this.rules.cidr
425425
}

0 commit comments

Comments
 (0)