Browse Source

Move details of granted access

pull/7792/head
Thomas Kaul 1 month ago
parent
commit
54dd951a3d
  1. 14
      apps/client/src/app/components/access-table/access-table.component.html
  2. 11
      apps/client/src/app/components/access-table/access-table.component.ts

14
apps/client/src/app/components/access-table/access-table.component.html

@ -45,20 +45,6 @@
</td>
</ng-container>
<ng-container matColumnDef="details">
<th *matHeaderCellDef class="px-1" i18n mat-header-cell>Details</th>
<td *matCellDef="let element" class="px-1 text-nowrap" mat-cell>
@if (element.type === 'PUBLIC') {
<div class="align-items-center d-flex">
<ion-icon class="mr-1" name="link-outline" />
<a target="_blank" [href]="getPublicUrl(element.id)">{{
getPublicUrl(element.id)
}}</a>
</div>
}
</td>
</ng-container>
<ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 text-right" mat-header-cell></th>

11
apps/client/src/app/components/access-table/access-table.component.ts

@ -31,7 +31,6 @@ import {
copyOutline,
createOutline,
ellipsisHorizontal,
linkOutline,
removeCircleOutline,
trashOutline
} from 'ionicons/icons';
@ -80,14 +79,7 @@ export class GfAccessTableComponent {
protected readonly dataSource = new MatTableDataSource<Access>();
protected readonly displayedColumns = computed(() => {
const columns = [
'alias',
'grantee',
'type',
'lastUsedAt',
'expiresAt',
'details'
];
const columns = ['alias', 'grantee', 'type', 'lastUsedAt', 'expiresAt'];
if (this.showActions()) {
columns.push('actions');
@ -118,7 +110,6 @@ export class GfAccessTableComponent {
copyOutline,
createOutline,
ellipsisHorizontal,
linkOutline,
removeCircleOutline,
trashOutline
});

Loading…
Cancel
Save