From 513d204d58c13c1a3602619430e3f6ad9319fc12 Mon Sep 17 00:00:00 2001 From: scammo Date: Wed, 18 Aug 2021 14:34:28 +0200 Subject: [PATCH] #17 #16 --- src/components/AutoComplete.vue | 122 ++++++---------------------- src/components/ProfileList.vue | 140 +++++++++++++++++++++----------- src/views/Index.vue | 4 - src/views/profile/Edit.vue | 54 +++++++----- 4 files changed, 149 insertions(+), 171 deletions(-) diff --git a/src/components/AutoComplete.vue b/src/components/AutoComplete.vue index 1a374b2..3b6b779 100644 --- a/src/components/AutoComplete.vue +++ b/src/components/AutoComplete.vue @@ -11,45 +11,16 @@ id="searchText" v-model="searchText" @keyup="search()" + @keyup.enter="addResult()" /> -
-
-
- -
-
- -
-
- -
-
-
-
@@ -74,13 +36,7 @@ class="list-group-item" v-for="result in searchResults" :key="result.id" - :class="{ - 'bg-info': - selectedResult && - selectedResult.id && - result.id === selectedResult.id, - }" - @click="selectedResult = result" + @click="addResult(result)" > {{ result.name }} @@ -90,17 +46,15 @@ :values="values" :type="type" :editable="true" - @edit-value="editValue($event)" @remove-value="removeValue($event)" - > + @update-values="this.$emit('update-values', this.values)" + > +
diff --git a/src/components/ProfileList.vue b/src/components/ProfileList.vue index 36e91fa..4e266a8 100644 --- a/src/components/ProfileList.vue +++ b/src/components/ProfileList.vue @@ -1,54 +1,95 @@ diff --git a/src/views/Index.vue b/src/views/Index.vue index d533112..0ecf475 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -58,7 +58,6 @@ export default { async submitLogin() { this.showErrorMessage = false; try { - console.log(this.apiUrl) const loginResult = await axios.post( `${this.apiUrl}/users/login`, { @@ -66,10 +65,7 @@ export default { password: this.password, } ); - console.log(loginResult); - console.log(loginResult.status); if (loginResult.status === 200) { - console.log('if true') this.showErrorMessage = false; //success login localStorage.setItem("token", loginResult.data.token); diff --git a/src/views/profile/Edit.vue b/src/views/profile/Edit.vue index 32b0a6c..2a5beca 100644 --- a/src/views/profile/Edit.vue +++ b/src/views/profile/Edit.vue @@ -5,17 +5,29 @@
- +
- +
- Erst wenn du dein Profil Öffentlich stellst, können andere Genoss:innen darauf zugreifen oder es in der Suche finden. -
+ Erst wenn du dein Profil Öffentlich stellst, können andere Genoss:innen + darauf zugreifen oder es in der Suche finden. +
@@ -82,16 +94,16 @@ >
- - -
+ + +
- +