Compare commits
2 Commits
b190a3764b
...
fcbf3ee796
Author | SHA1 | Date | |
---|---|---|---|
fcbf3ee796 | |||
|
fee786f1c8 |
@ -10,3 +10,7 @@
|
||||
.btn-primary {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
.search-card{
|
||||
height: 100%;
|
||||
}
|
||||
|
@ -92,11 +92,12 @@ 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/${store.currentUserId}/profile`,
|
||||
`${this.apiUrl}/users/${userId}/profile`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
@ -46,17 +46,20 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
class="text-decoration-none"
|
||||
:to="{ path: `/s/profile/${result.user_id}` }"
|
||||
>
|
||||
<div class="card">
|
||||
<div class="card search-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>
|
||||
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
|
||||
<p class="card-text" v-if="result.skills">
|
||||
<p
|
||||
class="card-text"
|
||||
v-if="result.skills && result.skills.length > 0"
|
||||
>
|
||||
Fähigkeiten:
|
||||
<span v-for="skill in result.skills" :key="skill.skill.name"
|
||||
>{{ skill.skill.name }}
|
||||
<span v-for="(skill, index) in result.skills" :key="index"
|
||||
>
|
||||
{{ skill.skill.name}}<span v-if="index != result.skills.length - 1">, </span>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
@ -68,7 +71,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",
|
||||
|
Loading…
Reference in New Issue
Block a user