pull/4143/head
tidusjar 4 years ago
parent db67ddd839
commit 1d5b6f3c89

@ -105,14 +105,8 @@
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions">
<th mat-header-cell *matHeaderCellDef> </th> <th mat-header-cell *matHeaderCellDef> </th>
<td mat-cell *matCellDef="let u"> <td mat-cell *matCellDef="let u">
<button id="edit{{u.userName}}" mat-raised-button color="accent" [routerLink]="['/usermanagement/user/' + u.id]">Details/Edit</button> <button id="edit{{u.userName}}" mat-raised-button color="accent" [routerLink]="['/usermanagement/user/' + u.id]">Edit</button>
</td> <button *ngIf="!u.hasLoggedIn" mat-raised-button color="accent" (click)="welcomeEmail(u)" [disabled]="!customizationSettings?.applicationUrl"><i class="far fa-paper-plane"></i> Welcome</button>
</ng-container>
<ng-container matColumnDef="welcome">
<th mat-header-cell *matHeaderCellDef> </th>
<td mat-cell *matCellDef="let u">
<button *ngIf="!u.hasLoggedIn" mat-raised-button color="accent" (click)="welcomeEmail(u)" [disabled]="!customizationSettings?.applicationUrl">Send Welcome Email</button>
</td> </td>
</ng-container> </ng-container>

@ -37,6 +37,8 @@
.content { .content {
margin-top: 2em; margin-top: 2em;
overflow-x: auto;
} }
.buttons { .buttons {

@ -13,7 +13,7 @@ import { SelectionModel } from "@angular/cdk/collections";
export class UserManagementComponent implements OnInit { export class UserManagementComponent implements OnInit {
public displayedColumns: string[] = ['select', 'username', 'alias', 'email', 'roles', 'remainingRequests', public displayedColumns: string[] = ['select', 'username', 'alias', 'email', 'roles', 'remainingRequests',
'nextRequestDue', 'lastLoggedIn', 'userType', 'actions', 'welcome']; 'nextRequestDue', 'lastLoggedIn', 'userType', 'actions'];
public dataSource: MatTableDataSource<IUser>; public dataSource: MatTableDataSource<IUser>;
public selection = new SelectionModel<IUser>(true, []); public selection = new SelectionModel<IUser>(true, []);

Loading…
Cancel
Save