fix thread hover and composer
This commit is contained in:
parent
97768e3695
commit
6d9d67905c
@ -32,9 +32,9 @@ onBeforeRouteUpdate(async (to, from) => {
|
|||||||
|
|
||||||
const shouldDisplayComposer = () => {
|
const shouldDisplayComposer = () => {
|
||||||
if (!id.value) return false;
|
if (!id.value) return false;
|
||||||
const room = store.getters.room(id);
|
const room = store.getters.room(id.value);
|
||||||
if (!room) return false;
|
if (!room) return false;
|
||||||
return room.roomType === RoomType.THREAD || room.roomType === RoomType.GROUP;
|
return room.roomType == RoomType.THREAD || room.roomType == RoomType.GROUP;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ const router = useRouter();
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
@click="router.push(`/${props.threadId}`)"
|
@click="router.push(`/${props.threadId}`)"
|
||||||
v-bind:class="store.state.activeRoom == props.data.id ? 'selected' : ''"
|
v-bind:class="store.state.activeRoom == props.threadId ? 'selected' : ''"
|
||||||
class="room"
|
class="room"
|
||||||
>
|
>
|
||||||
{{ room.roomName }}
|
{{ room.roomName }}
|
||||||
|
Loading…
Reference in New Issue
Block a user