• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / iznik-nuxt3 / 9f339386-b298-4f12-85aa-a0ce1c5a46b4

02 Apr 2026 09:34PM UTC coverage: 44.782% (-0.3%) from 45.054%
9f339386-b298-4f12-85aa-a0ce1c5a46b4

push

circleci

CircleCI Auto-merge
Auto-merge master to production after successful tests - Original commit: test(ModMergeMemberModal): add unit tests for merge by id and email

4499 of 10299 branches covered (43.68%)

Branch coverage included in aggregate %.

2028 of 4276 relevant lines covered (47.43%)

58.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

46.15
/components/InterestedInOthersModal.vue
1
<template>
2
  <b-modal ref="modal" scrollable size="lg">
3
    <template #title>
4
      <div class="d-flex">
5
        <ProfileImage
6
          v-if="otherUser.profile.path"
×
7
          :image="otherUser.profile.path"
8
          class="me-2"
9
          is-thumbnail
10
          size="lg"
11
        />
12

13
        {{ otherTitle }}
14
      </div>
15
    </template>
16
    <template #default>
17
      <p>
×
18
        Check out their other posts - let them know if you're interested in any
19
        of these too.
20
      </p>
21
      <MessageList
22
        :messages-for-list="otherMessages"
23
        :jobs="false"
24
        class="msglist"
25
        small
26
      />
27
    </template>
28
    <template #footer>
29
      <b-button variant="primary" @click="hide"> Close </b-button>
3!
30
    </template>
31
  </b-modal>
32
</template>
33

34
<script setup>
35
import { computed } from 'vue'
36
import ProfileImage from './ProfileImage.vue'
37
import MessageList from './MessageList.vue'
38
import { useOurModal } from '~/composables/useOurModal'
39
import { useMessageStore } from '~/stores/message'
40
import { useUserStore } from '~/stores/user'
41

42
const messageStore = useMessageStore()
3✔
43
const userStore = useUserStore()
44

45
const props = defineProps({
46
  msgid: {
47
    type: Number,
48
    required: true,
49
  },
50
  userid: {
51
    type: Number,
52
    required: true,
53
  },
54
})
55

56
const { modal, hide } = useOurModal()
57

58
// Fetch the messages for this user.
59
await Promise.all([
3✔
60
  messageStore.fetchByUser(props.userid, true, true),
61
  userStore.fetch(props.userid),
62
])
63

64
const otherMessages = computed(() => {
3✔
65
  const userMessages = messageStore.byUser(props.userid)
66
  return userMessages.filter((msg) => msg.id !== props.msgid)
67
})
68

69
const otherUser = computed(() => {
70
  return userStore.byId(props.userid)
71
})
72

73
const otherTitle = computed(() => {
74
  return 'Others from ' + otherUser.value.displayname
75
})
76

77
// Auto-hide modal if no other messages to show
78
if (otherMessages.value.length === 0) {
4✔
79
  hide()
×
80
}
81
</script>
82
<style scoped lang="scss">
83
.msglist {
84
  max-height: max(500px, 40vh);
85
}
86
</style>
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc