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
|
<template>
<BlubberPanel :threadId="threadId" :search="search" v-if="threadId" />
</template>
<script>
import BlubberPanel from './Panel.vue';
export default {
props: {
initialThreadId: {
type: String,
required: true,
},
search: {
type: String,
default: '',
},
},
components: {
BlubberPanel,
},
data: () => ({
threadId: null,
}),
methods: {
onSelectThread(threadId) {
this.threadId = threadId;
},
},
beforeMount() {
this.onSelectThread(this.initialThreadId);
},
};
</script>
|