mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Ref
This commit is contained in:
@@ -94,8 +94,8 @@ class ActionItemSetupHelper {
|
||||
|
||||
/** @type {({name?: string} & Record | string)[]} */
|
||||
const actionDefsListOriginal = [
|
||||
...this.metadata.get(['clientDefs', 'Global', type + 'ActionList']) || [],
|
||||
...this.metadata.get(['clientDefs', scope, type + 'ActionList']) || [],
|
||||
...this.metadata.get(['clientDefs', 'Global', type]) || [],
|
||||
...this.metadata.get(['clientDefs', scope, type]) || [],
|
||||
];
|
||||
|
||||
/** @type {({name?: string} & Object.<string, *>)[]} */
|
||||
|
||||
@@ -290,7 +290,7 @@ class DetailModalView extends ModalView {
|
||||
|
||||
actionItemSetup.setup({
|
||||
view: this,
|
||||
type: 'modalDetail',
|
||||
type: 'modalDetailActionList',
|
||||
waitFunc: promise => this.wait(promise),
|
||||
addFunc: item => this.addDropdownItem(item),
|
||||
showFunc: name => this.showActionItem(name),
|
||||
|
||||
@@ -551,7 +551,7 @@ class EditModalView extends ModalView {
|
||||
|
||||
actionItemSetup.setup({
|
||||
view: this,
|
||||
type: 'modalEdit',
|
||||
type: 'modalEditActionList',
|
||||
waitFunc: promise => this.wait(promise),
|
||||
addFunc: item => this.addDropdownItem(item),
|
||||
showFunc: name => this.showActionItem(name),
|
||||
|
||||
@@ -1032,7 +1032,7 @@ class DetailRecordView<S extends DetailRecordViewSchema = DetailRecordViewSchema
|
||||
|
||||
actionItemSetup.setup({
|
||||
view: this,
|
||||
type: this.type,
|
||||
type: 'detailActionList',
|
||||
waitFunc: promise => this.wait(promise),
|
||||
addFunc: item => this.addDropdownItem(item),
|
||||
showFunc: name => this.showActionItem(name),
|
||||
@@ -1054,7 +1054,7 @@ class DetailRecordView<S extends DetailRecordViewSchema = DetailRecordViewSchema
|
||||
|
||||
actionItemSetup.setup({
|
||||
view: this,
|
||||
type: 'edit',
|
||||
type: 'editActionList',
|
||||
waitFunc: promise => this.wait(promise),
|
||||
addFunc: item => {
|
||||
if (this.type === this.TYPE_EDIT) {
|
||||
|
||||
Reference in New Issue
Block a user