various bug fixes

This commit is contained in:
Zoe
2023-04-21 01:25:27 -05:00
parent 3ea8167569
commit 4890d657b5
12 changed files with 137 additions and 41 deletions

View File

@@ -134,7 +134,8 @@
<button
v-for="channel in server.channels"
:key="channel.id"
class="flex text-center bg-inherit hover:backdrop-brightness-[1.35] px-2 py-1.5 w-full transition-all rounded drop-shadow-sm gap-1/5 cursor-pointer items-center"
:class="(activeChannel.id === channel.id) ? 'backdrop-brightness-[1.35]' : 'hover:backdrop-brightness-[1.35]'"
class="flex text-center bg-inherit px-2 py-1.5 w-full transition-all rounded drop-shadow-sm gap-1/5 cursor-pointer items-center"
@click="openChannel(channel.id)"
>
<span class="h-fit">
@@ -330,10 +331,14 @@ import { useGlobalStore } from '~/stores/store';
import { IChannel, IRole } from '~/types';
export default {
setup() {
console.log('sidebar', useGlobalStore().activeServer.channels);
},
data() {
return {
server: storeToRefs(useGlobalStore()).activeServer,
serverType: storeToRefs(useGlobalStore()).activeServerType,
activeChannel: storeToRefs(useGlobalStore()).activeChannel,
user: storeToRefs(useGlobalStore()).user,
dms: storeToRefs(useGlobalStore()).dms,
createChannelModelOpen: false,