|
@@ -43,12 +43,18 @@ export default {
|
|
|
this.$options.staticRenderFns = [];
|
|
|
this._staticTrees = [];
|
|
|
this.form.staticRenderFns.map(fn => (this.$options.staticRenderFns.push(fn)));
|
|
|
+ this.initFormBehaviours()
|
|
|
})
|
|
|
.catch(( error ) => {
|
|
|
console.warn('Issue with getRegisterForm', error)
|
|
|
})
|
|
|
},
|
|
|
+ initFormBehaviours(){
|
|
|
+ Drupal.attachBehaviors(this.$el)
|
|
|
+ this.checkSubmitEnabled()
|
|
|
+ },
|
|
|
checkSubmitEnabled () {
|
|
|
+ console.log("checkSubmitEnabled", this);
|
|
|
if(this.ps === 'Strong'){
|
|
|
this.$refs.register.disabled = false
|
|
|
}else{
|
|
@@ -84,8 +90,9 @@ export default {
|
|
|
},
|
|
|
mounted(){
|
|
|
// console.log('LoginBlock mounted');
|
|
|
- Drupal.attachBehaviors(this.$el);
|
|
|
- this.checkSubmitEnabled()
|
|
|
+ if(this.form){
|
|
|
+ this.initForm()
|
|
|
+ }
|
|
|
},
|
|
|
render(h) {
|
|
|
// console.log('LoginBlock render');
|