From 604576b46a31d4c8246909ff9799fa1677fe99b0 Mon Sep 17 00:00:00 2001 From: Adam French Date: Mon, 9 Mar 2026 18:11:03 +0000 Subject: [PATCH] Only show attach button if user is admin --- nginx/vue/src/components/util/Chat.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx/vue/src/components/util/Chat.vue b/nginx/vue/src/components/util/Chat.vue index e963196..d79570c 100644 --- a/nginx/vue/src/components/util/Chat.vue +++ b/nginx/vue/src/components/util/Chat.vue @@ -2,9 +2,11 @@ import { ref, computed, watch, nextTick, onMounted, onUnmounted } from "vue"; import Button from "@/components/input/Button.vue"; import { useMessagesStore } from "@/stores/messages"; +import { useAuthStore } from "@/stores/auth"; import Header from "@/components/text/Header.vue"; const messagesStore = useMessagesStore(); +const authStore = useAuthStore(); const messages = computed(() => messagesStore.messages); const messageInput = ref(""); const messagesContainer = ref(null); @@ -80,7 +82,7 @@ onUnmounted(() => { @change="onFileSelected" />
- +