Blame view

src/components/chat/ChatMessaging.vue 1.09 KB
93a68cfa1   Jatinder Singh   first commit
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>
    <v-container class="fill-height pa-0 ma-0 messaging fluid" id="messaging">
      <template v-if="!$vuetify.breakpoint.smAndDown">
        <v-layout row>
          <v-flex lg3 class="white">
            <chat-history>
            </chat-history>
          </v-flex>
          <v-flex lg9>
            <chat-window></chat-window>
          </v-flex>
        </v-layout>
      </template>
      <template v-else>
        <v-layout column>
          <v-flex sm12 class="white" v-if="showSidebar">
            <chat-history>
            </chat-history>          
          </v-flex>
          <v-flex sm12 v-if="showWindow">
            <chat-window></chat-window>
          </v-flex>
        </v-layout>        
      </template>
    </v-container>     
  </template>
  <script>
  import ChatHistory from './ChatHistory';
  import ChatWindow from './ChatWindow';
  export default {
    components: {
      ChatHistory,
      ChatWindow
    },
    data () {
      return {
      };
    },
    computed: {
      showSidebar () {
        return this.$route.params.uuid === undefined;
      },
      showWindow () {
        return this.$route.params.uuid !== undefined;
      },
    },
  };
  </script>