Add preventDefault for action button of repo card view (#16117)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
孙世军 2021-12-14 11:44:25 +08:00 committed by GitHub
parent 2a7d4ae4d3
commit 46507c2fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,8 +91,7 @@
</div>
<div class="card-footer">
<clr-dropdown [clrCloseMenuOnItemClick]="false">
<!--<button *ngIf="withAdmiral" type="button" class="btn btn-link" (click)="provisionItemEvent($event, item)" [disabled]="!hasProjectAdminRole">{{'REPOSITORY.DEPLOY' | translate}}</button>-->
<button type="button" class="btn btn-link" (click)="$event.stopPropagation()" [disabled]="!hasDeleteRepositoryPermission" clrDropdownTrigger>
<button type="button" class="btn btn-link" (click)="$event.stopPropagation();$event.preventDefault()" [disabled]="!hasDeleteRepositoryPermission" clrDropdownTrigger>
{{'REPOSITORY.ACTION' | translate}}
<clr-icon shape="caret down"></clr-icon>
</button>