diff --git a/.changeset/wicked-bees-dance.md b/.changeset/wicked-bees-dance.md new file mode 100644 index 0000000000..a00a89f54c --- /dev/null +++ b/.changeset/wicked-bees-dance.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-intranet-header': minor +--- + +Added the possibility to hide the username in the profile dropdown. diff --git a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts index a2b81d928a..c3e475c0fc 100644 --- a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts +++ b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts @@ -167,6 +167,19 @@ const meta: MetaComponent = { }, }, }, + hideCurrentUserId: { + name: 'hideCurrentUserId', + description: 'Hides the current user id from the profile dropdown', + control: 'boolean', + table: { + defaultValue: { + summary: 'false', + }, + type: { + summary: 'boolean', + }, + }, + }, }, }; diff --git a/packages/intranet-header-workspace/projects/intranet-header/src/lib/swisspost-intranet-header.component.html b/packages/intranet-header-workspace/projects/intranet-header/src/lib/swisspost-intranet-header.component.html index 6bdcca75f5..32e0901a83 100644 --- a/packages/intranet-header-workspace/projects/intranet-header/src/lib/swisspost-intranet-header.component.html +++ b/packages/intranet-header-workspace/projects/intranet-header/src/lib/swisspost-intranet-header.component.html @@ -79,7 +79,7 @@