mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Compose email controls
This commit is contained in:
@@ -273,6 +273,8 @@ class CalenderEditModalView extends EditModalView {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
setupActionItems() {}
|
||||
}
|
||||
|
||||
export default CalenderEditModalView;
|
||||
|
||||
@@ -34,6 +34,9 @@ import Language from 'language';
|
||||
|
||||
/** @module helpers/action-item-setup */
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class ActionItemSetupHelper {
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
import EditModalView from 'views/modals/edit';
|
||||
import MailtoHelper from 'helpers/misc/mailto';
|
||||
import EmailScheduleSendModalView from 'views/email/modals/schedule-send';
|
||||
import ActionItemSetup from 'helpers/action-item-setup';
|
||||
|
||||
class ComposeEmailModalView extends EditModalView {
|
||||
|
||||
@@ -338,6 +339,38 @@ class ComposeEmailModalView extends EditModalView {
|
||||
await this.assignView('dialog', view);
|
||||
await view.render();
|
||||
}
|
||||
|
||||
/**
|
||||
* @protected
|
||||
*/
|
||||
setupActionItems() {
|
||||
const actionItemSetup = new ActionItemSetup();
|
||||
|
||||
actionItemSetup.setup({
|
||||
view: this,
|
||||
type: 'recordControls.compose.dropdown',
|
||||
waitFunc: promise => this.wait(promise),
|
||||
addFunc: item => this.addDropdownItem(item),
|
||||
showFunc: name => this.showActionItem(name),
|
||||
hideFunc: name => this.hideActionItem(name),
|
||||
});
|
||||
|
||||
actionItemSetup.setup({
|
||||
view: this,
|
||||
type: 'recordControls.composeSide.buttons',
|
||||
waitFunc: promise => this.wait(promise),
|
||||
addFunc: item => {
|
||||
this.addButton({
|
||||
...item,
|
||||
position: 'right',
|
||||
})
|
||||
},
|
||||
showFunc: name => this.showActionItem(name),
|
||||
hideFunc: name => this.hideActionItem(name),
|
||||
enableFunc: name => this.enableButton(name),
|
||||
disableFunc: name => this.disableButton(name),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default ComposeEmailModalView;
|
||||
|
||||
@@ -544,7 +544,8 @@ class EditModalView extends ModalView {
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @protected
|
||||
* @internal
|
||||
*/
|
||||
setupActionItems() {
|
||||
const actionItemSetup = new ActionItemSetup();
|
||||
|
||||
Reference in New Issue
Block a user