mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-27 17:52:14 +00:00
fix(console): remove cropper, set avatar url if available (#1865)
* set avatarurl if available * lint * force sidemargin * dont load image via asset * rm log * stylelint * add ZITADEL domain to csp img src * sanitize url * fix undefined link projects * use name as fallback * operator: rename uploadServiceURL to assetServiceURL in environment json for console * remove data * rm logs * center crop image * add avatar to changes Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
ab78b34c6c
commit
465081ee6d
@@ -13,7 +13,8 @@
|
||||
<div class="row">
|
||||
<app-avatar matTooltip="{{ dayelement.editorDisplayName }}"
|
||||
*ngIf="dayelement.editorDisplayName; else spacer" class="avatar"
|
||||
[name]="dayelement.editorDisplayName" [size]="32" [forColor]="dayelement?.preferredLoginName">
|
||||
[name]="dayelement.editorDisplayName" [size]="32" [forColor]="dayelement?.editorPreferredLoginName"
|
||||
[avatarUrl]="dayelement.editorAvatarUrl || ''">
|
||||
</app-avatar>
|
||||
<ng-template #spacer>
|
||||
<div class="spacer"></div>
|
||||
@@ -40,4 +41,4 @@
|
||||
<mat-spinner *ngIf="loading | async" diameter="25"></mat-spinner>
|
||||
</div>
|
||||
<span class="end-container" *ngIf="bottom">{{'CHANGES.BOTTOM' | translate}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -190,6 +190,8 @@ export class ChangesComponent implements OnInit, OnDestroy {
|
||||
editor: change.editorDisplayName,
|
||||
editorId: change.editorId,
|
||||
editorDisplayName: change.editorDisplayName,
|
||||
editorPreferredLoginName: change.editorPreferredLoginName,
|
||||
editorAvatarUrl: change.editorAvatarUrl,
|
||||
|
||||
dates: [change.changeDate],
|
||||
// data: [change.data],
|
||||
@@ -211,6 +213,8 @@ export class ChangesComponent implements OnInit, OnDestroy {
|
||||
editor: change.editorDisplayName,
|
||||
editorId: change.editorId,
|
||||
editorDisplayName: change.editorDisplayName,
|
||||
editorPreferredLoginName: change.editorPreferredLoginName,
|
||||
editorAvatarUrl: change.editorAvatarUrl,
|
||||
|
||||
dates: [change.changeDate],
|
||||
// data: [change.data],
|
||||
|
||||
Reference in New Issue
Block a user