+
+ constructor (private i18n: I18n) { }
+
+ ngOnInit () {
+ // <my-edit-button /> No label
+ if (this.label === undefined && !this.title) {
+ this.title = this.i18n('Update')
+ }
+
+ // <my-edit-button label /> Use default label
+ if (this.label === '') {
+ this.label = this.i18n('Update')
+
+ if (!this.title) {
+ this.title = this.label
+ }
+ }
+ }