Merge pull request 'Sonntagsarbeiten' (#30) from sonntag into main #31

Closed
scammo wants to merge 2 commits from main into sonntag
3 changed files with 17 additions and 9 deletions
Showing only changes of commit fcbf3ee796 - Show all commits

View File

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

View File

@ -92,11 +92,12 @@ 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/${store.currentUserId}/profile`, `${this.apiUrl}/users/${userId}/profile`,
{ {
method: 'POST', method: 'POST',
headers: { headers: {

View File

@ -46,17 +46,20 @@ 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"> <div class="card search-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>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6> <p
<p class="card-text" v-if="result.skills"> class="card-text"
v-if="result.skills && result.skills.length > 0"
>
Fähigkeiten: Fähigkeiten:
<span v-for="skill in result.skills" :key="skill.skill.name" <span v-for="(skill, index) in result.skills" :key="index"
>{{ skill.skill.name }} >
{{ skill.skill.name}}<span v-if="index != result.skills.length - 1">, </span>
</span> </span>
</p> </p>
</div> </div>
@ -68,7 +71,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",