fix(cnsl): hide new auth button if no routerlink (#6640)

* fix(cnsl): hide new auth button if no routerlink

* fix: add @peintnermax suggestions

---------

Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
Miguel Cabrerizo 2023-09-29 08:39:30 +02:00 committed by GitHub
parent 0a2e6dcfb3
commit eb31c2a3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
<a
actions
*ngIf="disableWrite === false && selection.hasValue() === false"
*ngIf="disableWrite === false && selection.hasValue() === false && routerLink"
matTooltip="{{ 'GRANTS.ADD' | translate }}"
color="primary"
class="cnsl-action-button"

View File

@ -56,7 +56,7 @@ export class UserGrantsComponent implements OnInit, AfterViewInit {
@ViewChild('input') public filter!: MatInput;
public projectRoleOptions: Role.AsObject[] = [];
public routerLink: any = [''];
public routerLink: any = undefined;
public loadedId: string = '';
public loadedProjectId: string = '';