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