-
+
+
+
+
+
@@ -119,7 +129,6 @@
data() {
return {
tab: 'profile',
- startedCaches: [],
inviteMail: "",
currentTeamStatus: "Dienstag 15:00 Treffen zum Blumencache",
teamStatus: "",
@@ -129,6 +138,10 @@
teamName: null,
teamRanking: null,
dropDownSelectedItem: null,
+ boolMyTeam: true,
+ boolInvites: false,
+ boolCreateTeam: false,
+ newTeamName: "",
columns: [
{
name: 'desc',
@@ -233,12 +246,12 @@
this.data[0].userData = this.userName;
this.email = JSON.parse(localStorage.getItem('userMail'));
this.data[1].userData = this.email;
- this.getPersonalRanking();
+ this.userRanking = 1234;
this.data[2].userData = this.userRanking;
this.teamName = "BuGa19Community";
this.data[3].userData = this.teamName;
this.dropDownSelectedItem = this.teamName;
- this.teamRanking = "2019";
+ this.teamRanking = 2019;
this.data[4].userData = this.teamRanking;
},
methods: {
@@ -248,7 +261,7 @@
},
getPersonalRanking() {
const token = JSON.parse(localStorage.getItem('userToken')).token;
- this.$axios.get('/api/getRankingPlace', {params: {token}})
+ this.$axios.get('/api/getRankingPlace', {token})
.then((response) => {
this.userRanking = response.data;
console.log(response.data);
@@ -308,8 +321,19 @@
dropDownSelectItem(item) {
if (item === 'team') {
this.dropDownSelectedItem = this.teamName;
+ this.boolMyTeam = true;
+ this.boolInvites = false;
+ this.boolCreateTeam = false;
+ } else if (item === 'Offene Teameinladungen') {
+ this.dropDownSelectedItem = item;
+ this.boolMyTeam = false;
+ this.boolInvites = true;
+ this.boolCreateTeam = false;
} else {
this.dropDownSelectedItem = item;
+ this.boolMyTeam = false;
+ this.boolInvites = false;
+ this.boolCreateTeam = true;
}
},
}
diff --git a/frontend/src/pages/Register.vue b/frontend/src/pages/Register.vue
index a1d5b2c..93f0e8f 100644
--- a/frontend/src/pages/Register.vue
+++ b/frontend/src/pages/Register.vue
@@ -7,57 +7,62 @@
+ label="Nutzername eingeben"
+ :rules="[val=>val.length>=2||'Name muss mindestens 2 Zeichen lang sein!']"/>