Compare commits

..

No commits in common. "fcbf3ee796819256be04ecd1dc140c6d20e0497a" and "b190a3764bc6c022858682cbcb15aa547045689c" have entirely different histories.

3 changed files with 9 additions and 17 deletions

View File

@ -10,7 +10,3 @@
.btn-primary {
color: #fff !important;
}
.search-card{
height: 100%;
}

View File

@ -92,12 +92,11 @@ export default {
async submitFormEdit() {
this.showErrorMessage = false
this.showSuccessMessage = false
const userId = store.state.currentUserId
try {
const body = JSON.stringify(this.profile)
const response = await fetch(
`${this.apiUrl}/users/${userId}/profile`,
`${this.apiUrl}/users/${store.currentUserId}/profile`,
{
method: 'POST',
headers: {

View File

@ -46,20 +46,17 @@ SPDX-License-Identifier: AGPL-3.0-or-later
class="text-decoration-none"
:to="{ path: `/s/profile/${result.user_id}` }"
>
<div class="card search-card">
<div class="card">
<div class="card-body">
<h5 class="card-title">
{{ result.nickname}}
<span v-if="result.pronouns"> ({{ result.pronouns }})</span>
{{ result.nickname
}}<span v-if="result.pronouns"> ({{ result.pronouns }})</span>
</h5>
<p
class="card-text"
v-if="result.skills && result.skills.length > 0"
>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
<p class="card-text" v-if="result.skills">
Fähigkeiten:
<span v-for="(skill, index) in result.skills" :key="index"
>
{{ skill.skill.name}}<span v-if="index != result.skills.length - 1">, </span>
<span v-for="skill in result.skills" :key="skill.skill.name"
>{{ skill.skill.name }}
</span>
</p>
</div>
@ -71,7 +68,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
</div>
</template>
<script>
import RequestMixin from "@/mixins/request.mixin";
import RequestMixin from "@/mixins/request.mixin"
export default {
name: "Search",