Add placeholder for ip_whitelist input

This commit is contained in:
Angelina Filippova 2020-12-10 00:41:25 +03:00
parent 05cd0cc712
commit c506fa5ee5

View file

@ -30,6 +30,7 @@
v-for="(item, index) in tupleValue" v-for="(item, index) in tupleValue"
:value="item" :value="item"
:key="index" :key="index"
:placeholder="getPlaceholder[index]"
class="tuple-input" class="tuple-input"
@input="processTupleTwoTypeValue($event, setting.key, index)"/> @input="processTupleTwoTypeValue($event, setting.key, index)"/>
</div> </div>
@ -69,6 +70,9 @@ export default {
const value = this.data[this.setting.key] const value = this.data[this.setting.key]
return typeof value !== 'boolean' return typeof value !== 'boolean'
}, },
getPlaceholder() {
return { 0: ':basic', 1: 'username', 2: 'password' }
},
integerValue() { integerValue() {
const value = this.data[this.setting.key] const value = this.data[this.setting.key]
return value || 0 return value || 0