Commit e20033f9 authored by Jörg Richter's avatar Jörg Richter

Don't show auth selector when only 1 option (#168)

parent 7092341b
Pipeline #6568 passed with stages
in 3 minutes and 5 seconds
<template>
<el-dialog custom-class="dm5-login-dialog" :visible="visible" width="20em" title="Login" @open="open" @close="close">
<div class="field">
<div class="field" v-if="showSelect">
<div class="field-label">Authorization Method</div>
<el-select v-model="authMethod">
<el-option v-for="authMethod in authMethods" :value="authMethod" :key="authMethod"></el-option>
......@@ -54,6 +54,10 @@ export default {
visible () {
return this.$store.state.accesscontrol.visible
},
showSelect () {
return this.authMethods.length > 1
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment