mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
- Fix default button image was not working
- Fix disabled="false" in template sort-of disabled buttons instead of them working normally This fixes CRM view close button
This commit is contained in:
parent
5e2995234b
commit
abd2e3804a
@ -178,13 +178,13 @@ export class Et2Button extends Et2InputWidget(SlotMixin(LionButton))
|
|||||||
let image = this._get_default_image(this._widget_id);
|
let image = this._get_default_image(this._widget_id);
|
||||||
if(image != this._image)
|
if(image != this._image)
|
||||||
{
|
{
|
||||||
this.image = this._get_default_image(this._widget_id);
|
this.image = image;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let default_class = this._get_default_class(this._widget_id);
|
let default_class = this._get_default_class(this._widget_id);
|
||||||
if(default_class && !this.classList.contains(default_class))
|
if(default_class && !this.classList.contains(default_class))
|
||||||
{
|
{
|
||||||
this.classList.add(this._get_default_class(this._widget_id));
|
this.classList.add(default_class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,11 @@ const Et2InputWidgetMixin = (superclass) =>
|
|||||||
attribute: 'readonly',
|
attribute: 'readonly',
|
||||||
reflect: true,
|
reflect: true,
|
||||||
},
|
},
|
||||||
|
// readonly is what is in the templates
|
||||||
|
// I put this in here so loadWebComponent finds it when it tries to set it from the template
|
||||||
|
readonly: {
|
||||||
|
type: Boolean
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user