[ACS-8821] Agent avatar image location fix (#4135)

This commit is contained in:
jacekpluta 2024-09-24 13:53:44 +02:00 committed by GitHub
parent 3d25eb7beb
commit f50b0144d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View File

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

View File

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View File

@ -26,7 +26,7 @@ import { Agent } from '@alfresco/js-api/typings';
export const getAgentsWithMockedAvatars = (agents: Agent[], mocked: boolean) => {
if (mocked) {
const images = ['assets/images/avatars/Blue.png', 'assets/images/avatars/Gold.png', 'assets/images/avatars/Pink.png'];
const images = ['assets/images/agent-avatar-blue.png', 'assets/images/agent-avatar-gold.png', 'assets/images/agent-avatar-pink.png'];
return agents.map((agent, index) => {
return { ...agent, avatarUrl: images[index > 2 ? 2 : index] };
});