diff --git a/apps/client/src/app/components/access-table/access-table.component.ts b/apps/client/src/app/components/access-table/access-table.component.ts index cc25f01435..0064df4c41 100644 --- a/apps/client/src/app/components/access-table/access-table.component.ts +++ b/apps/client/src/app/components/access-table/access-table.component.ts @@ -80,15 +80,14 @@ export class GfAccessTableComponent { protected readonly dataSource = new MatTableDataSource(); protected readonly displayedColumns = computed(() => { - const columns = ['alias', 'grantee', 'type', 'lastUsedAt', 'expiresAt']; - - if ( - this.accesses()?.some(({ type }) => { - return type === 'PUBLIC'; - }) - ) { - columns.push('details'); - } + const columns = [ + 'alias', + 'grantee', + 'type', + 'lastUsedAt', + 'expiresAt', + 'details' + ]; if (this.showActions()) { columns.push('actions'); diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts index ed4b201101..ff88f6f1ed 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts @@ -245,11 +245,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { } protected get showMcpDetails() { - return ( - this.accessType === 'MCP' && - this.hasPermissionToEnableMcp && - this.mode === 'update' - ); + return this.canGrantMcpAccess && this.mode === 'update'; } protected get showPublicDetails() { @@ -365,7 +361,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { } private async updateAccess() { - const accessId = this.data.access?.id; + const accessId = this.accessId; if (!accessId) { return; diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html index 0fd6bf8a56..b0858bf8d8 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -137,14 +137,16 @@

Details

@if (showMcpDetails) {
- {{ baseUrl }}{{ mcpEndpoint }} + {{ baseUrl }}{{ mcpEndpoint }}
- Authorization: Bearer {{ accessId }} + Authorization: Bearer {{ accessId }}
} @else if (showPublicDetails) {
- GET {{ baseUrl }}/api/v1/public/{{ accessId }}/portfolio + GET {{ baseUrl }}/api/v1/public/{{ accessId }}/portfolio
} }