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 littleskunk
parent e2603461ab
commit 8f1d4a6506

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;
}
}