aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_list/chat_list.vue
blob: e62f58e54a4301ed623756a07dfa06dcb8cd5459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
  <div v-if="isNew">
    <ChatNew @cancel="cancelNewChat" />
  </div>
  <div
    v-else
    class="chat-list panel panel-default"
  >
    <div class="panel-heading">
      <span class="title">
        {{ $t("chats.chats") }}
      </span>
      <button @click="newChat">
        {{ $t("chats.new") }}
      </button>
    </div>
    <div class="panel-body">
      <div class="timeline">
        <List :items="sortedChatList">
          <template
            slot="item"
            slot-scope="{item}"
          >
            <ChatListItem
              :key="item.id"
              :compact="false"
              :chat="item"
            />
          </template>
        </List>
      </div>
    </div>
  </div>
</template>

<script src="./chat_list.js"></script>

<style lang="scss">
@import '../../_variables.scss';

.chat-list {
  min-height: calc(100vh - 67px);
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

</style>