Erweiterung zum Log in
This commit is contained in:
parent
773408dc12
commit
e108be1fb8
@ -23,6 +23,7 @@ Vue.component('login-panel', {
|
||||
</b-input>
|
||||
</b-field>
|
||||
<b-checkbox>Eingeloggt bleiben</b-checkbox>
|
||||
<div v-if="showError" style="color:red;"> Versuche es nochmal.</div>
|
||||
</section>
|
||||
<footer class="modal-card-foot">
|
||||
<button class="button" type="button" @click="$parent.close()">Close</button>
|
||||
@ -35,14 +36,17 @@ Vue.component('login-panel', {
|
||||
return {
|
||||
user: "name",
|
||||
pwd:"password",
|
||||
showError:false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
checkData(){
|
||||
if(this.user === "name" && this.pwd === "password"){
|
||||
console.log("correct");
|
||||
this.$parent.close();
|
||||
}else{
|
||||
console.log("wrong");
|
||||
this.showError=true;
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user