fixed registerform loading bug
This commit is contained in:
parent
8af88af806
commit
5ec39a5f0a
File diff suppressed because one or more lines are too long
|
@ -43,12 +43,18 @@ export default {
|
||||||
this.$options.staticRenderFns = [];
|
this.$options.staticRenderFns = [];
|
||||||
this._staticTrees = [];
|
this._staticTrees = [];
|
||||||
this.form.staticRenderFns.map(fn => (this.$options.staticRenderFns.push(fn)));
|
this.form.staticRenderFns.map(fn => (this.$options.staticRenderFns.push(fn)));
|
||||||
|
this.initFormBehaviours()
|
||||||
})
|
})
|
||||||
.catch(( error ) => {
|
.catch(( error ) => {
|
||||||
console.warn('Issue with getRegisterForm', error)
|
console.warn('Issue with getRegisterForm', error)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
initFormBehaviours(){
|
||||||
|
Drupal.attachBehaviors(this.$el)
|
||||||
|
this.checkSubmitEnabled()
|
||||||
|
},
|
||||||
checkSubmitEnabled () {
|
checkSubmitEnabled () {
|
||||||
|
console.log("checkSubmitEnabled", this);
|
||||||
if(this.ps === 'Strong'){
|
if(this.ps === 'Strong'){
|
||||||
this.$refs.register.disabled = false
|
this.$refs.register.disabled = false
|
||||||
}else{
|
}else{
|
||||||
|
@ -84,8 +90,9 @@ export default {
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
// console.log('LoginBlock mounted');
|
// console.log('LoginBlock mounted');
|
||||||
Drupal.attachBehaviors(this.$el);
|
if(this.form){
|
||||||
this.checkSubmitEnabled()
|
this.initForm()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
render(h) {
|
render(h) {
|
||||||
// console.log('LoginBlock render');
|
// console.log('LoginBlock render');
|
||||||
|
|
Loading…
Reference in New Issue