diff --git a/app/controllers/api/v1/profiles_controller.rb b/app/controllers/api/v1/profiles_controller.rb index bd3c2673c..ae1a1fe30 100644 --- a/app/controllers/api/v1/profiles_controller.rb +++ b/app/controllers/api/v1/profiles_controller.rb @@ -17,7 +17,7 @@ class Api::V1::ProfilesController < Api::BaseController def avatar @user.avatar.attachment.destroy! if @user.avatar.attached? - head :ok + @user.reload end def auto_offline diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsSidebar/ContactCustomAttributes.vue b/app/javascript/dashboard/components-next/Contacts/ContactsSidebar/ContactCustomAttributes.vue index cb9a45ce3..f2a5c1ee8 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactsSidebar/ContactCustomAttributes.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactsSidebar/ContactCustomAttributes.vue @@ -16,10 +16,7 @@ const { t } = useI18n(); const searchQuery = ref(''); -const contactAttributes = computed(() => { - const attributes = useMapGetter('attributes/getAttributesByModelType'); - return attributes.value('contact_attribute') || []; -}); +const contactAttributes = useMapGetter('attributes/getContactAttributes') || []; const hasContactAttributes = computed( () => contactAttributes.value?.length > 0 diff --git a/app/javascript/dashboard/components-next/avatar/Avatar.vue b/app/javascript/dashboard/components-next/avatar/Avatar.vue index ab87e33c9..fb23b3cff 100644 --- a/app/javascript/dashboard/components-next/avatar/Avatar.vue +++ b/app/javascript/dashboard/components-next/avatar/Avatar.vue @@ -132,7 +132,7 @@ const iconStyles = computed(() => ({ })); const initialsStyles = computed(() => ({ - fontSize: `${props.size > 32 ? 16 : props.size / 2}px`, + fontSize: `${Math.min(props.size / 2.5, 24)}px`, })); const invalidateCurrentImage = () => { diff --git a/app/javascript/dashboard/components-next/dropdown-menu/base/DropdownContainer.vue b/app/javascript/dashboard/components-next/dropdown-menu/base/DropdownContainer.vue index a3b53f955..373bb526f 100644 --- a/app/javascript/dashboard/components-next/dropdown-menu/base/DropdownContainer.vue +++ b/app/javascript/dashboard/components-next/dropdown-menu/base/DropdownContainer.vue @@ -21,9 +21,9 @@ provideDropdownContext({