ref
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user