From 7fbda3ec9c8af782e4c8b4cb6ac3877d31c7f323 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 20 Jun 2025 16:41:08 +0530 Subject: [PATCH] fix: use crmUsers in comment box (cherry picked from commit 85191e10c881490ae420156798a320935a9c6fa2) --- frontend/src/components/CommentBox.vue | 2 +- frontend/src/components/Settings/Settings.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/CommentBox.vue b/frontend/src/components/CommentBox.vue index 3fcfc82c..86074750 100644 --- a/frontend/src/components/CommentBox.vue +++ b/frontend/src/components/CommentBox.vue @@ -149,7 +149,7 @@ function removeAttachment(attachment) { const users = computed(() => { return ( - usersList.data + usersList.data?.crmUsers ?.filter((user) => user.enabled) .map((user) => ({ label: user.full_name.trimEnd(), diff --git a/frontend/src/components/Settings/Settings.vue b/frontend/src/components/Settings/Settings.vue index 612e67a2..c81fa5f3 100644 --- a/frontend/src/components/Settings/Settings.vue +++ b/frontend/src/components/Settings/Settings.vue @@ -60,7 +60,7 @@ import { showSettings, activeSettingsPage, } from '@/composables/settings' -import { Dialog, Button, Avatar } from 'frappe-ui' +import { Dialog, Avatar } from 'frappe-ui' import { ref, markRaw, computed, watch, h } from 'vue' const { isManager, isAgent, getUser } = usersStore()