mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
force list view settings param
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"controller": "controllers/record",
|
||||
"forceListViewSettings": true,
|
||||
"views": {
|
||||
"list": "views/email-template/list"
|
||||
},
|
||||
|
||||
@@ -637,6 +637,7 @@ class ListView extends MainView {
|
||||
forceDisplayTopBar: true,
|
||||
additionalRowActionList: this.getMetadata().get(`clientDefs.${this.scope}.rowActionList`),
|
||||
settingsEnabled: true,
|
||||
forceSettings: this.getMetadata().get(`clientDefs.${this.scope}.forceListViewSettings`),
|
||||
};
|
||||
|
||||
if (this.getHelper().isXsScreen()) {
|
||||
|
||||
@@ -98,6 +98,7 @@ class ListRecordView extends View {
|
||||
* @property {boolean} [columnResize] Column resize. Actual only if the settings is enabled.
|
||||
* @property {function(import('model').default[])} [onSelect] An on-select callback. Actual if selectable.
|
||||
* As of v9.1.0.
|
||||
* @property {boolean} [forceSettings] Force settings. As of v9.2.0.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -2053,6 +2054,10 @@ class ListRecordView extends View {
|
||||
this.checkboxes = false;
|
||||
}
|
||||
|
||||
if (this.options.forceSettings) {
|
||||
this.forceSettings = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
|
||||
@@ -53,6 +53,10 @@
|
||||
"type": "boolean",
|
||||
"description": "Disables remove."
|
||||
},
|
||||
"forceListViewSettings": {
|
||||
"type": "boolean",
|
||||
"description": "Force list view settings for non-object entity types. As of v9.2.0."
|
||||
},
|
||||
"views": {
|
||||
"description": "View classes. Available views: list, detail, edit, listRelated.",
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user