From e99a8273701cbb3d22a0add5822d86323ef92dea Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 12 Nov 2021 10:18:35 +0200 Subject: [PATCH] removed not needed 'showSystem' param --- .../dossier-templates-listing-screen.component.html | 3 +-- .../initials-avatar/initials-avatar.component.html | 2 +- .../components/initials-avatar/initials-avatar.component.ts | 3 --- apps/red-ui/src/app/modules/shared/pipes/name.pipe.ts | 5 ----- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-template-listing/dossier-templates-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-template-listing/dossier-templates-listing-screen.component.html index c80fd6ec0..23aec99aa 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-template-listing/dossier-templates-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-template-listing/dossier-templates-listing-screen.component.html @@ -78,9 +78,8 @@
diff --git a/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.html b/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.html index c3cbbd9b6..538181b7c 100644 --- a/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.html +++ b/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.html @@ -4,7 +4,7 @@ [matTooltipPosition]="tooltipPosition" [matTooltip]="userName" > - {{ _user | name: { showInitials: true, showSystem: showSystem } }} + {{ _user | name: { showInitials: true } }}
{{ userName }} diff --git a/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts b/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts index 3fee06b87..3d79a2c10 100644 --- a/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/initials-avatar/initials-avatar.component.ts @@ -16,7 +16,6 @@ export class InitialsAvatarComponent extends AutoUnsubscribe implements OnInit, @Input() size: 'small' | 'large' = 'small'; @Input() withName = false; @Input() showYou = false; - @Input() showSystem = false; @Input() tooltipPosition: 'below' | 'above' = 'above'; @Input() defaultValue = this._translateService.instant('initials-avatar.unassigned'); colorClass: string; @@ -60,7 +59,6 @@ export class InitialsAvatarComponent extends AutoUnsubscribe implements OnInit, if (this.color.includes('-')) { return this.color; } - return `${this.color}-dark`; } @@ -81,7 +79,6 @@ export class InitialsAvatarComponent extends AutoUnsubscribe implements OnInit, this.namePipeOptions = { showYou: this.showYou, defaultValue: this.defaultValue, - showSystem: this.showSystem, }; } } diff --git a/apps/red-ui/src/app/modules/shared/pipes/name.pipe.ts b/apps/red-ui/src/app/modules/shared/pipes/name.pipe.ts index 9d4239453..aba1521d5 100644 --- a/apps/red-ui/src/app/modules/shared/pipes/name.pipe.ts +++ b/apps/red-ui/src/app/modules/shared/pipes/name.pipe.ts @@ -18,7 +18,6 @@ function getInitials(name: string) { export interface NamePipeOptions { showYou?: boolean; showInitials?: boolean; - showSystem?: boolean; defaultValue?: string; } @@ -33,10 +32,6 @@ export class NamePipe implements PipeTransform { transform(value?: User | string, options = this._defaultOptions): string { let name; - if (!value && options?.showSystem) { - value = 'system'; - } - if (!value && options?.showInitials) { return '?'; }