Compare commits
No commits in common. "fcbf3ee796819256be04ecd1dc140c6d20e0497a" and "b190a3764bc6c022858682cbcb15aa547045689c" have entirely different histories.
fcbf3ee796
...
b190a3764b
@ -10,7 +10,3 @@
|
|||||||
.btn-primary {
|
.btn-primary {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-card{
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
@ -92,12 +92,11 @@ export default {
|
|||||||
async submitFormEdit() {
|
async submitFormEdit() {
|
||||||
this.showErrorMessage = false
|
this.showErrorMessage = false
|
||||||
this.showSuccessMessage = false
|
this.showSuccessMessage = false
|
||||||
const userId = store.state.currentUserId
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const body = JSON.stringify(this.profile)
|
const body = JSON.stringify(this.profile)
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`${this.apiUrl}/users/${userId}/profile`,
|
`${this.apiUrl}/users/${store.currentUserId}/profile`,
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -46,20 +46,17 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
class="text-decoration-none"
|
class="text-decoration-none"
|
||||||
:to="{ path: `/s/profile/${result.user_id}` }"
|
:to="{ path: `/s/profile/${result.user_id}` }"
|
||||||
>
|
>
|
||||||
<div class="card search-card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">
|
<h5 class="card-title">
|
||||||
{{ result.nickname}}
|
{{ result.nickname
|
||||||
<span v-if="result.pronouns"> ({{ result.pronouns }})</span>
|
}}<span v-if="result.pronouns"> ({{ result.pronouns }})</span>
|
||||||
</h5>
|
</h5>
|
||||||
<p
|
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
|
||||||
class="card-text"
|
<p class="card-text" v-if="result.skills">
|
||||||
v-if="result.skills && result.skills.length > 0"
|
|
||||||
>
|
|
||||||
Fähigkeiten:
|
Fähigkeiten:
|
||||||
<span v-for="(skill, index) in result.skills" :key="index"
|
<span v-for="skill in result.skills" :key="skill.skill.name"
|
||||||
>
|
>{{ skill.skill.name }}
|
||||||
{{ skill.skill.name}}<span v-if="index != result.skills.length - 1">, </span>
|
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -71,7 +68,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import RequestMixin from "@/mixins/request.mixin";
|
import RequestMixin from "@/mixins/request.mixin"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Search",
|
name: "Search",
|
||||||
|
Loading…
Reference in New Issue
Block a user