|
|
|
|
|
|
|
|
</b-input> |
|
|
</b-input> |
|
|
</b-field> |
|
|
</b-field> |
|
|
<b-checkbox>Eingeloggt bleiben</b-checkbox> |
|
|
<b-checkbox>Eingeloggt bleiben</b-checkbox> |
|
|
|
|
|
<div v-if="showError" style="color:red;"> Versuche es nochmal.</div> |
|
|
</section> |
|
|
</section> |
|
|
<footer class="modal-card-foot"> |
|
|
<footer class="modal-card-foot"> |
|
|
<button class="button" type="button" @click="$parent.close()">Close</button> |
|
|
<button class="button" type="button" @click="$parent.close()">Close</button> |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
user: "name", |
|
|
user: "name", |
|
|
pwd:"password", |
|
|
pwd:"password", |
|
|
|
|
|
showError:false, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
checkData(){ |
|
|
checkData(){ |
|
|
if(this.user === "name" && this.pwd === "password"){ |
|
|
if(this.user === "name" && this.pwd === "password"){ |
|
|
console.log("correct"); |
|
|
console.log("correct"); |
|
|
|
|
|
this.$parent.close(); |
|
|
}else{ |
|
|
}else{ |
|
|
console.log("wrong"); |
|
|
console.log("wrong"); |
|
|
|
|
|
this.showError=true; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|