mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
Force user to not have both --auth and --tag-auth at the same time in the UI #453
This commit is contained in:
parent
08b6323176
commit
aff69fb3eb
@ -16,7 +16,7 @@
|
||||
<b-form-input v-model="options.auth" @change="update()"></b-form-input>
|
||||
|
||||
<label>{{ $t("webOptions.tagAuth") }}</label>
|
||||
<b-form-input v-model="options.tag_auth" @change="update()"></b-form-input>
|
||||
<b-form-input v-model="options.tag_auth" @change="update()" :disabled="Boolean(options.auth)"></b-form-input>
|
||||
</b-card>
|
||||
|
||||
<br>
|
||||
@ -46,11 +46,18 @@ export default {
|
||||
return {
|
||||
showEsTestAlert: false,
|
||||
esTestOk: false,
|
||||
esTestMessage: "",
|
||||
esTestMessage: ""
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
update() {
|
||||
|
||||
console.log(this.options)
|
||||
if (this.options.auth && this.options.tag_auth) {
|
||||
// If both are set, remove tagAuth
|
||||
this.options.tag_auth = "";
|
||||
}
|
||||
|
||||
this.$emit("change", this.options);
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user