aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/buttons/delete-button.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-21 10:54:38 +0200
committerChocobozzz <me@florianbigard.com>2019-05-21 10:54:38 +0200
commit8c6781e95641fcb3d4a747ba4a37ef8efb1ad1bc (patch)
tree67e2c24151975077c038b999a972ec8bff3cc820 /client/src/app/shared/buttons/delete-button.component.ts
parent4550872bcc8f9ef46183463c7b7b74a90cb6d17c (diff)
downloadPeerTube-8c6781e95641fcb3d4a747ba4a37ef8efb1ad1bc.tar.gz
PeerTube-8c6781e95641fcb3d4a747ba4a37ef8efb1ad1bc.tar.zst
PeerTube-8c6781e95641fcb3d4a747ba4a37ef8efb1ad1bc.zip
Fix pagination in my videos page
Diffstat (limited to 'client/src/app/shared/buttons/delete-button.component.ts')
-rw-r--r--client/src/app/shared/buttons/delete-button.component.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/client/src/app/shared/buttons/delete-button.component.ts b/client/src/app/shared/buttons/delete-button.component.ts
index 8e285d982..39e31900f 100644
--- a/client/src/app/shared/buttons/delete-button.component.ts
+++ b/client/src/app/shared/buttons/delete-button.component.ts
@@ -1,4 +1,4 @@
1import { Component, Input } from '@angular/core' 1import { Component, Input, OnInit } from '@angular/core'
2import { I18n } from '@ngx-translate/i18n-polyfill' 2import { I18n } from '@ngx-translate/i18n-polyfill'
3 3
4@Component({ 4@Component({
@@ -7,12 +7,14 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
7 templateUrl: './delete-button.component.html' 7 templateUrl: './delete-button.component.html'
8}) 8})
9 9
10export class DeleteButtonComponent { 10export class DeleteButtonComponent implements OnInit {
11 @Input() label: string 11 @Input() label: string
12 12
13 title: string
14
13 constructor (private i18n: I18n) { } 15 constructor (private i18n: I18n) { }
14 16
15 getTitle () { 17 ngOnInit () {
16 return this.label || this.i18n('Delete') 18 this.title = this.label || this.i18n('Delete')
17 } 19 }
18} 20}