feat(editor): Add support for project icons (#12349)

This commit is contained in:
Milorad FIlipović
2024-12-27 19:00:40 +01:00
committed by GitHub
parent 7ea6c8b144
commit 9117718cc9
43 changed files with 962 additions and 76 deletions

View File

@@ -19,11 +19,19 @@ const processedName = computed(() => {
email,
};
});
const projectIcon = computed(() => {
if (props.project.icon) {
return props.project.icon;
}
return null;
});
</script>
<template>
<div :class="$style.projectInfo" data-test-id="project-sharing-info">
<div>
<N8nAvatar :first-name="processedName.firstName" :last-name="processedName.lastName" />
<ProjectIcon v-if="projectIcon" :icon="projectIcon" size="large" :round="true" />
<N8nAvatar v-else :first-name="processedName.firstName" :last-name="processedName.lastName" />
<div :class="$style.text">
<p v-if="processedName.firstName || processedName.lastName">
{{ processedName.firstName }} {{ processedName.lastName }}