UI: Refactoring
This commit is contained in:
parent
d52f745909
commit
694f9a0dd4
@ -488,9 +488,8 @@ export class DashboardWidget implements GridsterItem, IDashboardWidget {
|
|||||||
padding: this.padding,
|
padding: this.padding,
|
||||||
margin: this.margin,
|
margin: this.margin,
|
||||||
borderRadius: this.borderRadius };
|
borderRadius: this.borderRadius };
|
||||||
if (this.widget.config.widgetStyle && !isEmpty(this.widget.config.widgetStyle)) {
|
if (!isEmpty(this.widget.config.widgetStyle)) {
|
||||||
const convertedStyle = convertKeysToCamelCase(this.widget.config.widgetStyle);
|
this.style = {...this.style, ...convertKeysToCamelCase(this.widget.config.widgetStyle)};
|
||||||
this.style = {...this.style, ...convertedStyle};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showWidgetTitlePanel = this.widgetContext.hideTitlePanel ? false :
|
this.showWidgetTitlePanel = this.widgetContext.hideTitlePanel ? false :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user