This commit is contained in:
Yuri Kuznetsov
2024-10-04 12:17:05 +03:00
parent b353ad1555
commit 225835f001
2 changed files with 8 additions and 5 deletions
+5 -3
View File
@@ -62,13 +62,15 @@ class DashletView extends View {
/** @inheritDoc */
data() {
const bodyView = this.getBodyView();
return {
name: this.name,
id: this.id,
title: this.getTitle(),
actionList: (this.getBodyView() || {}).actionList || [],
buttonList: (this.getBodyView() || {}).buttonList || [],
noPadding: (this.getBodyView() || {}).noPadding,
actionList: bodyView ? bodyView.actionList : [],
buttonList: bodyView ? bodyView.buttonList : [],
noPadding: bodyView ? bodyView.noPadding : false,
};
}
+3 -2
View File
@@ -52,6 +52,9 @@ class BaseDashletView extends View {
disabledForReadOnlyActionList = ['options', 'remove']
disabledForLockedActionList = ['remove']
/**
* @type {boolean}
*/
noPadding = false
/**
@@ -85,7 +88,6 @@ class BaseDashletView extends View {
/**
* Buttons.
*
* @protected
* @type {Array<module:views/dashlets/abstract/base~button>}
*/
buttonList = []
@@ -93,7 +95,6 @@ class BaseDashletView extends View {
/**
* Dropdown actions.
*
* @protected
* @type {Array<module:views/dashlets/abstract/base~action>}
*/
actionList = [