mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Add support for project icons (#12349)
This commit is contained in:
committed by
GitHub
parent
7ea6c8b144
commit
9117718cc9
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user