mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
fix double shortcut issue
This commit is contained in:
@@ -42,7 +42,7 @@ class ComposeEmailModalView extends EditModalView {
|
||||
shortcutKeys = {
|
||||
/** @this ComposeEmailModalView */
|
||||
'Control+Enter': function (e) {
|
||||
if (this.buttonList.findIndex(item => item.name === 'send' && !item.hidden) === -1) {
|
||||
if (this.buttonList.findIndex(item => item.name === 'send' && !item.hidden && !item.disabled) === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ class EditModalView extends ModalView {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden) === -1) {
|
||||
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden && !item.disabled) === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ class EditModalView extends ModalView {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden) === -1) {
|
||||
if (this.buttonList.findIndex(item => item.name === 'save' && !item.hidden && !item.disabled) === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user