X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fbuttons%2Fdelete-button.component.ts;h=0ee7d3757451fe463849fd1c5518fe000bdbecf0;hb=d12b40fb96d56786a96c06a621f3d8e0a0d24f4a;hp=90735852c31c52981ac3ca6284f237848b507dde;hpb=419b520ca4434d17f3505013174e195c3a316716;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/buttons/delete-button.component.ts b/client/src/app/shared/shared-main/buttons/delete-button.component.ts index 90735852c..0ee7d3757 100644 --- a/client/src/app/shared/shared-main/buttons/delete-button.component.ts +++ b/client/src/app/shared/shared-main/buttons/delete-button.component.ts @@ -2,17 +2,21 @@ import { Component, Input, OnInit } from '@angular/core' @Component({ selector: 'my-delete-button', - styleUrls: [ './button.component.scss' ], - templateUrl: './delete-button.component.html' + template: ` + + ` }) - export class DeleteButtonComponent implements OnInit { @Input() label: string @Input() title: string @Input() responsiveLabel = false + @Input() disabled: boolean ngOnInit () { - // No label if (this.label === undefined && !this.title) { this.title = $localize`Delete` }