Correctly use disabled attribute

This commit is contained in:
Chocobozzz 2024-09-23 10:08:22 +02:00
parent 460fd76755
commit 5e608d7c71
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<button *ngIf="!ptRouterLink" type="button" class="action-button" [ngClass]="classes" [ngbTooltip]="title">
<button *ngIf="!ptRouterLink" type="button" class="action-button" [ngClass]="classes" [disabled]="disabled" [ngbTooltip]="title">
<ng-container *ngTemplateOutlet="content"></ng-container>
</button>

View File

@ -41,7 +41,6 @@ export class ButtonComponent implements OnInit, OnChanges {
'peertube-button-link': !!this.ptRouterLink,
'orange-button': this.theme === 'orange',
'grey-button': this.theme === 'grey',
'disabled': this.disabled,
'icon-only': !this.label,
'has-icon': !!this.icon,
'responsive-label': this.responsiveLabel