projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP plugins: update plugin
[oweals/peertube.git]
/
client
/
src
/
app
/
shared
/
buttons
/
delete-button.component.ts
diff --git
a/client/src/app/shared/buttons/delete-button.component.ts
b/client/src/app/shared/buttons/delete-button.component.ts
index 8e285d98282616e398504245c6e63bacc71338f5..39e31900fa3998423dba23683688bfc3b554575b 100644
(file)
--- a/
client/src/app/shared/buttons/delete-button.component.ts
+++ b/
client/src/app/shared/buttons/delete-button.component.ts
@@
-1,4
+1,4
@@
-import { Component, Input } from '@angular/core'
+import { Component, Input
, OnInit
} from '@angular/core'
import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
@@
-7,12
+7,14
@@
import { I18n } from '@ngx-translate/i18n-polyfill'
templateUrl: './delete-button.component.html'
})
templateUrl: './delete-button.component.html'
})
-export class DeleteButtonComponent {
+export class DeleteButtonComponent
implements OnInit
{
@Input() label: string
@Input() label: string
+ title: string
+
constructor (private i18n: I18n) { }
constructor (private i18n: I18n) { }
-
getTitle
() {
-
return
this.label || this.i18n('Delete')
+
ngOnInit
() {
+
this.title =
this.label || this.i18n('Delete')
}
}
}
}