web/satellite: use correct color for projects table icons

This change uses the correct color corresponding to the role of a user
on a project.

Change-Id: Ibd8f9ccae4486a8039f77bae5c2533b060e73be9
This commit is contained in:
Wilfred Asomani 2023-06-23 12:55:38 +00:00 committed by Storj Robot
parent 265ac599c7
commit 9d4787f5e7

View File

@ -83,9 +83,9 @@ const icon = computed((): string => ObjectType.findIcon(props.itemType));
const customIconClasses = computed(() => {
const classes = {};
if (props.itemType === 'project') {
if (props.item['owner']) {
if (props.item['role'] === ProjectRole.Owner) {
classes['project-owner'] = true;
} else {
} else if (props.item['role'] === ProjectRole.Member) {
classes['project-member'] = true;
}
}