diff --git a/client/src/app/site/base/base-list-view.ts b/client/src/app/site/base/base-list-view.ts index e23c695b3..400d781a6 100644 --- a/client/src/app/site/base/base-list-view.ts +++ b/client/src/app/site/base/base-list-view.ts @@ -8,7 +8,6 @@ import { PblColumnDefinition, PblDataSource } from '@pebula/ngrid'; import { StorageService } from 'app/core/core-services/storage.service'; import { BaseViewComponent } from './base-view'; import { BaseViewModel } from './base-view-model'; -import { ViewUser } from '../users/models/view-user'; export abstract class BaseListViewComponent extends BaseViewComponent implements OnDestroy { /** @@ -117,14 +116,4 @@ export abstract class BaseListViewComponent extends Bas public saveScrollIndex(key: string, index: number): void { this.storage.set(`scroll_${key}`, index); } - - /** - * If the user is not active, formulate a tooltip accordingly - * - * @param user - * @returns "Inactive" as (untranslated) string if the given user is not active - */ - public getUserTooltip(user: ViewUser): string { - return user.is_active ? '' : 'Inactive'; - } } diff --git a/client/src/app/site/users/components/user-detail/user-detail.component.html b/client/src/app/site/users/components/user-detail/user-detail.component.html index 083d5f368..1c94f17fd 100644 --- a/client/src/app/site/users/components/user-detail/user-detail.component.html +++ b/client/src/app/site/users/components/user-detail/user-detail.component.html @@ -257,7 +257,12 @@

Name

- {{ user.short_name }} + + {{ user.short_name }} + check_box + stars + block +
diff --git a/client/src/app/site/users/components/user-detail/user-detail.component.scss b/client/src/app/site/users/components/user-detail/user-detail.component.scss index af541a875..b5e2c3895 100644 --- a/client/src/app/site/users/components/user-detail/user-detail.component.scss +++ b/client/src/app/site/users/components/user-detail/user-detail.component.scss @@ -33,3 +33,11 @@ mat-checkbox { margin-right: 10px; } + +.state-icons { + display: flex; + + mat-icon { + margin-left: 5px; + } +} diff --git a/client/src/app/site/users/components/user-list/user-list.component.html b/client/src/app/site/users/components/user-list/user-list.component.html index 75c0e19ae..d078d4ff4 100644 --- a/client/src/app/site/users/components/user-list/user-list.component.html +++ b/client/src/app/site/users/components/user-list/user-list.component.html @@ -33,18 +33,11 @@ (click)="saveScrollIndex('user', rowContext.identity)" [routerLink]="user.id" *ngIf="!isMultiSelect" - matTooltip="{{ getUserTooltip(user) | translate }}" > -
- - {{ name }} - - - - - {{ name }} - - +
+ {{ name }} + stars + block
diff --git a/client/src/app/site/users/components/user-list/user-list.component.scss b/client/src/app/site/users/components/user-list/user-list.component.scss index 27eabb620..54249fa90 100644 --- a/client/src/app/site/users/components/user-list/user-list.component.scss +++ b/client/src/app/site/users/components/user-list/user-list.component.scss @@ -13,3 +13,13 @@ .infoCell { display: grid; } + +.nameCell { + position: relative; + z-index: 2; + display: flex; + + span { + margin-right: 5px; + } +}