Skip to content

Commit

Permalink
Style and reword accepted answer in tree topic
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Nov 28, 2024
1 parent 9158061 commit 71978a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/Domain/Icon/FontAwesomeFree.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public function icons(): array
'postDeleted' => 'fa-solid fa-trash-can',
'postAuthorBlocked' => 'fa-solid fa-user-slash',
'postAccept' => $faTick,
'postAcceptAccepted' => $faTick,
'postEditHistoryShow' => 'fas fa-up-right-from-square',
'postFoldedCommentsUnfold' => 'far fa-comments',
'postVote' => 'far fa-thumbs-up',
Expand Down
1 change: 1 addition & 0 deletions app/Domain/Icon/FontAwesomePro.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public function icons(): array
'postDeleted' => 'fa-light fa-trash-can',
'postAuthorBlocked' => 'fa-light fa-user-slash',
'postAccept' => $faTick,
'postAcceptAccepted' => 'fa-light fa-circle-check',
'postEditHistoryShow' => 'fa-light fa-up-right-from-square',
'postFoldedCommentsUnfold' => 'fa-light fa-comments',
'postVote' => 'fa-light fa-thumbs-up',
Expand Down
6 changes: 3 additions & 3 deletions resources/js/components/forum/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,12 @@

<button class="btn btn-sm" v-if="is_mode_tree && post.permissions.accept" @click="accept(post)">
<template v-if="post.is_accepted">
<vue-icon name="postAccept" class="text-primary"/>
<span class="d-none d-sm-inline ms-1">Zaakceptowano</span>
<vue-icon name="postAcceptAccepted" class="text-primary"/>
<span class="d-none d-sm-inline ms-1">Najlepsza odpowiedź</span>
</template>
<template v-else>
<vue-icon name="postAccept"/>
<span class="d-none d-sm-inline ms-1">Zaakceptuj</span>
<span class="d-none d-sm-inline ms-1">Najlepsza odpowiedź</span>
</template>
</button>

Expand Down

0 comments on commit 71978a0

Please sign in to comment.