This commit is contained in:
Yurii
2026-06-13 20:25:35 +03:00
parent 7c9d72fdc1
commit 6d16e3bb62
4 changed files with 6 additions and 6 deletions

View File

@@ -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, *>)[]} */

View File

@@ -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),

View File

@@ -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),

View File

@@ -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) {