EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fix buttons
Yurii5d4afb208dbe
diff --git a/client/src/components/controls.ts b/client/src/components/controls.tsindex a8a1cfe060..ead1a327cd 100644--- a/client/src/components/controls.ts+++ b/client/src/components/controls.ts@@ -120,8 +120,8 @@ export class ButtonComponent {attrs: attrs,dataset: {...this.options.data,- name: this.options.name!,- action: this.options.action ?? this.options.name!,+ name: (this.options.name ?? undefined)!,+ action: (this.options.action ?? this.options.name ?? undefined)!,},props,}, content);@@ -178,8 +178,8 @@ export class DropdownItemComponent {attrs: attrs,dataset: {...this.options.data,- name: this.options.name!,- action: this.options.action ?? this.options.name!,+ name: (this.options.name ?? undefined)!,+ action: (this.options.action ?? this.options.name ?? undefined)!,},props: props,}, content);diff --git a/client/src/views/main/header-buttons.ts b/client/src/views/main/header-buttons.tsindex b3349fd073..61ad4e4980 100644--- a/client/src/views/main/header-buttons.ts+++ b/client/src/views/main/header-buttons.ts@@ -126,6 +126,7 @@ export default class HeaderButtonsView extends View<{name: it.name ?? null,action: it.action,scope: this.options.scope,+ link: it.link,label: it.label,labelTranslation: it.labelTranslation,title: it.title,@@ -178,6 +179,7 @@ export default class HeaderButtonsView extends View<{name: it.name ?? null,action: it.action,scope: this.options.scope,+ link: it.link,label: it.label,labelTranslation: it.labelTranslation,title: it.title,