Merge branch '85-implement-default-actions' into 'master'
Resolve "Implement default actions" Closes #85 See merge request marcel.schwarz/2020ss-qbc-geofence-timetracking!66
This commit is contained in:
commit
83bd086792
@ -50,7 +50,7 @@
|
|||||||
<!-- Top menu bar -->
|
<!-- Top menu bar -->
|
||||||
<v-app-bar app clipped-left class="main" elevation="10">
|
<v-app-bar app clipped-left class="main" elevation="10">
|
||||||
<v-app-bar-nav-icon @click.stop="drawer = !drawer" />
|
<v-app-bar-nav-icon @click.stop="drawer = !drawer" />
|
||||||
<v-img src="./assets/logo.svg" max-height="100%" max-width="100" contain></v-img>
|
<v-img @click="forward" src="./assets/logo.svg" max-height="100%" max-width="100" contain></v-img>
|
||||||
<v-toolbar-title>Geo Timetracking</v-toolbar-title>
|
<v-toolbar-title>Geo Timetracking</v-toolbar-title>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
|
|
||||||
@ -160,6 +160,9 @@ export default {
|
|||||||
role: sessionStorage.getItem("role")
|
role: sessionStorage.getItem("role")
|
||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
|
forward() {
|
||||||
|
this.$router.push("/")
|
||||||
|
},
|
||||||
signIn(loginData) {
|
signIn(loginData) {
|
||||||
|
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
|
@ -125,6 +125,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: () => ({
|
data: () => ({
|
||||||
step: 1,
|
step: 1,
|
||||||
@ -168,6 +169,20 @@ export default {
|
|||||||
document.getElementById("missingR").innerHTML= "Please fill out all fields";
|
document.getElementById("missingR").innerHTML= "Please fill out all fields";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
window.addEventListener('keyup', (e) => {
|
||||||
|
if (e.keyCode === 13) {
|
||||||
|
e.preventDefault();
|
||||||
|
if(this.step==1){
|
||||||
|
this.signin();
|
||||||
|
}else{
|
||||||
|
this.signup();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user