Skip to content

Commit

Permalink
fix(friend-requests): add color and change mobile friend request add/… (
Browse files Browse the repository at this point in the history
#5011)

* fix(friend-requests): add color and change mobile friend request add/decline buttons

* fix(friend-requests): swap accept/decline buttons for mobile
  • Loading branch information
nathan-power committed Sep 26, 2022
1 parent 9f0e505 commit 42eb07e
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions components/views/friends/mobile/ListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
</button> -->
</template>
<template v-else>
<button :disabled="loading" class="reject" @click="cancelRequest">
<x-icon />
</button>

<button
v-if="type === 'incoming'"
:disabled="loading"
class="accept"
@click="acceptFriendRequest"
>
<user-plus-icon />
</button>
<button :disabled="loading" @click="cancelRequest">
<trash-icon />
<check-icon />
</button>
</template>
</div>
Expand All @@ -33,19 +35,15 @@

<script lang="ts">
import Vue, { PropType } from 'vue'
import {
MessageCircleIcon,
TrashIcon,
UserPlusIcon,
} from 'satellite-lucide-icons'
import { MessageCircleIcon, XIcon, CheckIcon } from 'satellite-lucide-icons'
import { User } from '~/libraries/Iridium/users/types'
import iridium from '~/libraries/Iridium/IridiumManager'
export default Vue.extend({
components: {
MessageCircleIcon,
TrashIcon,
UserPlusIcon,
XIcon,
CheckIcon,
},
props: {
user: {
Expand Down Expand Up @@ -112,6 +110,14 @@ export default Vue.extend({
display: flex;
flex-shrink: 0;
gap: 1rem;
.accept {
color: @green;
}
.reject {
color: @red;
}
}
button:disabled {
Expand Down

0 comments on commit 42eb07e

Please sign in to comment.