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

Support programmatic component instantiation

See dmx-platform/dmx-platform#328
parent 1de12106
<template>
<el-dialog custom-class="dm5-login-dialog" :visible="visible" width="20em" title="Login"
<el-dialog custom-class="dm5-login-dialog" :visible="visible_" width="20em" title="Login"
@opened="opened" @close="close">
<div class="field" v-if="showSelect">
<div class="field-label">Authorization Method</div>
......@@ -55,7 +55,9 @@ export default {
username: '',
password: ''
},
message: ''
message: '',
// mirror props
visible_: this.visible
}
},
......@@ -65,6 +67,13 @@ export default {
}
},
watch: {
// needed when instantiated via template
visible () {
this.visible_ = this.visible
}
},
methods: {
login () {
......
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