Browse Source

Move details of granted access

pull/7792/head
Thomas Kaul 1 month ago
parent
commit
7822e633b7
  1. 10
      apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

10
apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts

@ -237,10 +237,6 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
return this.accessForm?.get('type')?.value as AccessType; return this.accessForm?.get('type')?.value as AccessType;
} }
protected get isMcpAccess() {
return this.accessType === 'MCP';
}
protected get isPublicAccess() { protected get isPublicAccess() {
return this.accessType === 'PUBLIC'; return this.accessType === 'PUBLIC';
} }
@ -250,7 +246,7 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
headers: { headers: {
Authorization: `Bearer ${this.accessId}` Authorization: `Bearer ${this.accessId}`
}, },
type: 'https', type: 'http',
url: `${this.baseUrl}${MCP_ENDPOINT}` url: `${this.baseUrl}${MCP_ENDPOINT}`
}; };
} }
@ -283,6 +279,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit {
} }
} }
private get isMcpAccess() {
return this.accessType === 'MCP';
}
private async createAccess() { private async createAccess() {
const filters = this.getFilters(); const filters = this.getFilters();

Loading…
Cancel
Save