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-list/user-list.component.html b/client/src/app/site/users/components/user-list/user-list.component.html
index 3e7dd2cdc..c90d8a401 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
@@ -32,9 +32,18 @@
(click)="saveScrollIndex('user', rowContext.identity)"
[routerLink]="user.id"
*ngIf="!isMultiSelect"
+ matTooltip="{{ getUserTooltip(user) | translate }}"
>
- {{ name }}
+
+ {{ name }}
+
+
+
+
+ {{ name }}
+
+
@@ -65,6 +74,7 @@
-
-
- Present
-
-
+
+ Present
+
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 d9f27e3d8..27eabb620 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
@@ -9,3 +9,7 @@
font-size: 80%;
}
}
+
+.infoCell {
+ display: grid;
+}
diff --git a/client/src/styles.scss b/client/src/styles.scss
index 59a680e62..cdaa30f02 100644
--- a/client/src/styles.scss
+++ b/client/src/styles.scss
@@ -170,6 +170,10 @@
}
}
+ .checkbox-ripple-padding {
+ padding-left: 12px;
+ }
+
.clickable {
cursor: pointer;
}
@@ -342,6 +346,7 @@ mat-card {
}
// Shared table definitions
+// TODO: Might be deprecated since we now have Virtual Scrolling Tables
%os-table {
width: 100%;