forked from extern/egroupware
Revert "getting label / tooltip of images to be translated", fixed another way.
This reverts commit 06ae750b32
.
This commit is contained in:
parent
9294ab81db
commit
cc132a8d72
@ -80,21 +80,6 @@ export class Et2Image extends Et2Widget(SlotMixin(LitElement)) implements et2_ID
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set_label(label)
|
|
||||||
{
|
|
||||||
this.label = label;
|
|
||||||
}
|
|
||||||
|
|
||||||
set label(label)
|
|
||||||
{
|
|
||||||
this.__label = this.egw().lang(label);
|
|
||||||
}
|
|
||||||
|
|
||||||
get label()
|
|
||||||
{
|
|
||||||
return this.__label;
|
|
||||||
}
|
|
||||||
|
|
||||||
get slots()
|
get slots()
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
@ -134,9 +119,9 @@ export class Et2Image extends Et2Widget(SlotMixin(LitElement)) implements et2_ID
|
|||||||
return html`
|
return html`
|
||||||
<img ${this.id ? html`id="${this.id}"` : ''}
|
<img ${this.id ? html`id="${this.id}"` : ''}
|
||||||
src="${src}"
|
src="${src}"
|
||||||
alt="${this.egw().lang(this.label)}"
|
alt="${this.label}"
|
||||||
part="image"
|
part="image"
|
||||||
title="${this.egw().lang(this.statustext || this.label)}"
|
title="${this.statustext || this.label}"
|
||||||
>`;
|
>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user