ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix Delete title button
Chocobozzz60709df53602
diff --git a/client/src/app/shared/buttons/delete-button.component.html b/client/src/app/shared/buttons/delete-button.component.htmlindex 7924902193..6c55d81049 100644--- a/client/src/app/shared/buttons/delete-button.component.html+++ b/client/src/app/shared/buttons/delete-button.component.html@@ -1,4 +1,4 @@-<span class="action-button action-button-delete" [title]="label" role="button">+<span class="action-button action-button-delete" [title]="getTitle()" role="button"><span class="icon icon-delete-grey"></span><span class="button-label" *ngIf="label">{{ label }}</span>diff --git a/client/src/app/shared/buttons/delete-button.component.ts b/client/src/app/shared/buttons/delete-button.component.tsindex cd2bcccdf9..8e285d9828 100644--- a/client/src/app/shared/buttons/delete-button.component.ts+++ b/client/src/app/shared/buttons/delete-button.component.ts@@ -1,4 +1,5 @@import { Component, Input } from '@angular/core'+import { I18n } from '@ngx-translate/i18n-polyfill'@Component({selector: 'my-delete-button',@@ -8,4 +9,10 @@ import { Component, Input } from '@angular/core'export class DeleteButtonComponent {@Input() label: string++ constructor (private i18n: I18n) { }++ getTitle () {+ return this.label || this.i18n('Delete')+ }}diff --git a/client/src/app/shared/buttons/edit-button.component.html b/client/src/app/shared/buttons/edit-button.component.htmlindex 7efc54ce72..cecb780f38 100644--- a/client/src/app/shared/buttons/edit-button.component.html+++ b/client/src/app/shared/buttons/edit-button.component.html@@ -1,4 +1,4 @@-<a class="action-button action-button-edit" [routerLink]="routerLink" title="Edit">+<a class="action-button action-button-edit" [routerLink]="routerLink" i18n-title title="Edit"><span class="icon icon-edit"></span><span class="button-label" *ngIf="label">{{ label }}</span>