diff --git a/application/Espo/Services/Note.php b/application/Espo/Services/Note.php index 35a6307054..8ea7505b8d 100644 --- a/application/Espo/Services/Note.php +++ b/application/Espo/Services/Note.php @@ -224,7 +224,7 @@ class Note extends Record if ($link === 'teams' || $link === 'users') { throw new Forbidden(); } - return parant::link($id, $link, $foreignId); + return parent::link($id, $link, $foreignId); } public function unlink($id, $link, $foreignId) @@ -232,7 +232,7 @@ class Note extends Record if ($link === 'teams' || $link === 'users') { throw new Forbidden(); } - return parant::unlink($id, $link, $foreignId); + return parent::unlink($id, $link, $foreignId); } public function processNoteAclJob($data) diff --git a/client/modules/crm/src/views/calendar/modals/edit.js b/client/modules/crm/src/views/calendar/modals/edit.js index b12ed76bdc..e6565ef5e2 100644 --- a/client/modules/crm/src/views/calendar/modals/edit.js +++ b/client/modules/crm/src/views/calendar/modals/edit.js @@ -166,7 +166,7 @@ Espo.define('crm:views/calendar/modals/edit', 'views/modals/edit', function (Dep Dep.prototype.setup.call(this); if (!this.id) { - this.header = this.translate('Create', 'labels', 'Calendar'); + this.headerHtml = this.translate('Create', 'labels', 'Calendar'); } if (this.id) { diff --git a/client/modules/crm/src/views/campaign/modals/mail-merge-pdf.js b/client/modules/crm/src/views/campaign/modals/mail-merge-pdf.js index 387395281a..e2fdcbf11a 100644 --- a/client/modules/crm/src/views/campaign/modals/mail-merge-pdf.js +++ b/client/modules/crm/src/views/campaign/modals/mail-merge-pdf.js @@ -40,7 +40,7 @@ Espo.define('crm:views/campaign/modals/mail-merge-pdf', ['views/modal', 'model'] setup: function () { Dep.prototype.setup.call(this); - this.header = this.translate('Generate Mail Merge PDF', 'labels', 'Campaign'); + this.headerHtml = this.translate('Generate Mail Merge PDF', 'labels', 'Campaign'); var linkList = ['contacts', 'leads', 'accounts', 'users']; this.linkList = []; linkList.forEach(function (link) { diff --git a/client/modules/crm/src/views/mass-email/modals/send-test.js b/client/modules/crm/src/views/mass-email/modals/send-test.js index 9d323e0afd..d01ea0921f 100644 --- a/client/modules/crm/src/views/mass-email/modals/send-test.js +++ b/client/modules/crm/src/views/mass-email/modals/send-test.js @@ -36,7 +36,7 @@ Espo.define('crm:views/mass-email/modals/send-test', ['views/modal', 'model'], f setup: function () { Dep.prototype.setup.call(this); - this.header = this.translate('Send Test', 'labels', 'MassEmail'); + this.headerHtml = this.translate('Send Test', 'labels', 'MassEmail'); var model = new Model(); diff --git a/client/src/views/email-folder/modals/select-folder.js b/client/src/views/email-folder/modals/select-folder.js index 8c26368530..16a6d0ed3a 100644 --- a/client/src/views/email-folder/modals/select-folder.js +++ b/client/src/views/email-folder/modals/select-folder.js @@ -64,7 +64,7 @@ Espo.define('views/email-folder/modals/select-folder', 'views/modal', function ( ], setup: function () { - this.header = ''; + this.headerHtml = ''; this.wait(true); this.getCollectionFactory().create('EmailFolder', function (collection) { @@ -79,5 +79,3 @@ Espo.define('views/email-folder/modals/select-folder', 'views/modal', function ( }, }); }); - - diff --git a/client/src/views/email/modals/body-plain.js b/client/src/views/email/modals/body-plain.js index 2c95c14871..11c781c341 100644 --- a/client/src/views/email/modals/body-plain.js +++ b/client/src/views/email/modals/body-plain.js @@ -41,7 +41,7 @@ Espo.define('views/email/modals/body-plain', 'views/modal', function (Dep) { 'label': 'Close' }); - this.header = Handlebars.Utils.escapeExpression(this.model.get('name')); + this.headerHtml = Handlebars.Utils.escapeExpression(this.model.get('name')); this.createView('bodyPlain', 'views/fields/text', { el: this.options.el + ' .field[data-name="bodyPlain"]', @@ -58,4 +58,3 @@ Espo.define('views/email/modals/body-plain', 'views/modal', function (Dep) { }); }); - diff --git a/client/src/views/email/modals/detail.js b/client/src/views/email/modals/detail.js index ae3090cd71..75f50959a0 100644 --- a/client/src/views/email/modals/detail.js +++ b/client/src/views/email/modals/detail.js @@ -54,4 +54,3 @@ Espo.define('views/email/modals/detail', ['views/modals/detail', 'views/email/de }); }); - diff --git a/client/src/views/fields/wysiwyg.js b/client/src/views/fields/wysiwyg.js index e1c16ee1cc..eef3ac9b59 100644 --- a/client/src/views/fields/wysiwyg.js +++ b/client/src/views/fields/wysiwyg.js @@ -370,6 +370,9 @@ Espo.define('views/fields/wysiwyg', ['views/fields/text', 'lib!Summernote'], fun this.trigger('change') }.bind(this), }, + onCreateLink: function (link) { + return link; + }, toolbar: this.toolbar, buttons: this.buttons }; diff --git a/client/src/views/modal.js b/client/src/views/modal.js index 23f48dc7d3..b9a9a1f05b 100644 --- a/client/src/views/modal.js +++ b/client/src/views/modal.js @@ -36,6 +36,8 @@ Espo.define('views/modal', 'view', function (Dep) { header: false, + headerHtml: null, + dialog: null, containerSelector: null, @@ -68,6 +70,7 @@ Espo.define('views/modal', 'view', function (Dep) { var containerSelector = this.containerSelector = '#' + id; this.header = this.options.header || this.header; + this.headerHtml = this.options.headerHtml || this.headerHtml; this.options = this.options || {}; @@ -127,9 +130,11 @@ Espo.define('views/modal', 'view', function (Dep) { modalBodyDiffHeight = this.getThemeManager().getParam('modalBodyDiffHeight'); } + var headerHtml = this.headerHtml || this.header; + this.dialog = new Espo.Ui.Dialog({ backdrop: this.backdrop, - header: this.header, + header: headerHtml, container: containerSelector, body: '', buttons: buttonListExt, diff --git a/client/src/views/modals/action-history.js b/client/src/views/modals/action-history.js index 252d02bb6b..bfda7ad090 100644 --- a/client/src/views/modals/action-history.js +++ b/client/src/views/modals/action-history.js @@ -30,8 +30,6 @@ Espo.define('views/modals/action-history', ['views/modal', 'search-manager'], fu return Dep.extend({ - header: false, - scope: 'ActionHistoryRecord', className: 'dialog dialog-record', @@ -52,8 +50,8 @@ Espo.define('views/modals/action-history', ['views/modal', 'search-manager'], fu this.scope = this.entityType = this.options.scope || this.scope; - this.header = this.getLanguage().translate(this.scope, 'scopeNamesPlural'); - this.header = '' + this.header + ''; + this.headerHtml = this.getLanguage().translate(this.scope, 'scopeNamesPlural'); + this.headerHtml = '' + this.headerHtml + ''; this.waitForView('list'); @@ -111,4 +109,3 @@ Espo.define('views/modals/action-history', ['views/modal', 'search-manager'], fu }, }); }); - diff --git a/client/src/views/modals/add-dashlet.js b/client/src/views/modals/add-dashlet.js index ad172e68d0..b0027baaa9 100644 --- a/client/src/views/modals/add-dashlet.js +++ b/client/src/views/modals/add-dashlet.js @@ -59,7 +59,7 @@ Espo.define('views/modals/add-dashlet', 'views/modal', function (Dep) { ], setup: function () { - this.header = this.translate('Add Dashlet'); + this.headerHtml = this.translate('Add Dashlet'); var dashletList = Object.keys(this.getMetadata().get('dashlets') || {}).sort(function (v1, v2) { return this.translate(v1, 'dashlets').localeCompare(this.translate(v2, 'dashlets')); @@ -85,5 +85,3 @@ Espo.define('views/modals/add-dashlet', 'views/modal', function (Dep) { }, }); }); - - diff --git a/client/src/views/modals/array-field-add.js b/client/src/views/modals/array-field-add.js index 1485b3228e..36b2cf3c5b 100644 --- a/client/src/views/modals/array-field-add.js +++ b/client/src/views/modals/array-field-add.js @@ -63,4 +63,3 @@ Espo.define('views/modals/array-field-add', 'views/modal', function (Dep) { }); }); - diff --git a/client/src/views/modals/change-password.js b/client/src/views/modals/change-password.js index 2e3dfc03a0..3858b0523b 100644 --- a/client/src/views/modals/change-password.js +++ b/client/src/views/modals/change-password.js @@ -47,7 +47,7 @@ Espo.define('views/modals/change-password', 'views/modal', function (Dep) { } ]; - this.header = this.translate('Change Password', 'labels', 'User'); + this.headerHtml = this.translate('Change Password', 'labels', 'User'); this.wait(true); diff --git a/client/src/views/modals/compose-email.js b/client/src/views/modals/compose-email.js index 5974b40d45..b0cf6b9493 100644 --- a/client/src/views/modals/compose-email.js +++ b/client/src/views/modals/compose-email.js @@ -54,7 +54,7 @@ Espo.define('views/modals/compose-email', 'views/modals/edit', function (Dep) { style: 'primary' }); - this.header = this.getLanguage().translate('Compose Email'); + this.headerHtml = this.getLanguage().translate('Compose Email'); if ( this.getConfig().get('emailForceUseExternalClient') || diff --git a/client/src/views/modals/detail.js b/client/src/views/modals/detail.js index 8455d208ba..b1d8935968 100644 --- a/client/src/views/modals/detail.js +++ b/client/src/views/modals/detail.js @@ -32,8 +32,6 @@ Espo.define('views/modals/detail', 'views/modal', function (Dep) { cssName: 'detail-modal', - header: false, - template: 'modals/detail', editDisabled: false, @@ -209,19 +207,19 @@ Espo.define('views/modals/detail', 'views/modal', function (Dep) { var model = this.model; var scope = this.getScope(); - this.header = ''; + this.headerHtml = ''; var iconHtml = this.getHelper().getScopeColorIconHtml(this.scope); - this.header += this.getLanguage().translate(scope, 'scopeNames'); + this.headerHtml += this.getLanguage().translate(scope, 'scopeNames'); if (model.get('name')) { - this.header += ' » ' + Handlebars.Utils.escapeExpression(model.get('name')); + this.headerHtml += ' » ' + Handlebars.Utils.escapeExpression(model.get('name')); } if (!this.fullFormDisabled) { - this.header = '' + this.header + ''; + this.headerHtml = '' + this.headerHtml + ''; } - this.header = iconHtml + this.header; + this.headerHtml = iconHtml + this.headerHtml; if (!this.editDisabled) { var editAccess = this.getAcl().check(model, 'edit', true); diff --git a/client/src/views/modals/duplicate.js b/client/src/views/modals/duplicate.js index 65f275ed62..907ed82c2e 100644 --- a/client/src/views/modals/duplicate.js +++ b/client/src/views/modals/duplicate.js @@ -32,8 +32,6 @@ Espo.define('views/modals/duplicate', 'views/modal', function (Dep) { cssName: 'duplicate-modal', - header: false, - template: 'modals/duplicate', data: function () { @@ -65,4 +63,3 @@ Espo.define('views/modals/duplicate', 'views/modal', function (Dep) { }); }); - diff --git a/client/src/views/modals/edit-dashboard.js b/client/src/views/modals/edit-dashboard.js index 194e3b5c7e..6dd579febc 100644 --- a/client/src/views/modals/edit-dashboard.js +++ b/client/src/views/modals/edit-dashboard.js @@ -88,7 +88,7 @@ Espo.define('views/modals/edit-dashboard', ['views/modal', 'model'], function (D model: model }); - this.header = this.translate('Edit Dashboard'); + this.headerHtml = this.translate('Edit Dashboard'); this.dashboardLayout = this.options.dashboardLayout; }, diff --git a/client/src/views/modals/edit.js b/client/src/views/modals/edit.js index d4468c04a3..1e86796a60 100644 --- a/client/src/views/modals/edit.js +++ b/client/src/views/modals/edit.js @@ -32,8 +32,6 @@ Espo.define('views/modals/edit', 'views/modal', function (Dep) { cssName: 'edit-modal', - header: false, - template: 'modals/edit', saveDisabled: false, @@ -95,22 +93,22 @@ Espo.define('views/modals/edit', 'views/modal', function (Dep) { this.id = this.options.id; if (!this.id) { - this.header = this.getLanguage().translate('Create ' + this.scope, 'labels', this.scope); + this.headerHtml = this.getLanguage().translate('Create ' + this.scope, 'labels', this.scope); } else { - this.header = this.getLanguage().translate('Edit'); - this.header += ': ' + this.getLanguage().translate(this.scope, 'scopeNames'); + this.headerHtml = this.getLanguage().translate('Edit'); + this.headerHtml += ': ' + this.getLanguage().translate(this.scope, 'scopeNames'); } if (!this.fullFormDisabled) { if (!this.id) { - this.header = '' + this.header + ''; + this.headerHtml = '' + this.headerHtml + ''; } else { - this.header = '' + this.header + ''; + this.headerHtml = '' + this.headerHtml + ''; } } var iconHtml = this.getHelper().getScopeColorIconHtml(this.scope); - this.header = iconHtml + this.header; + this.headerHtml = iconHtml + this.headerHtml; this.sourceModel = this.model; diff --git a/client/src/views/modals/image-crop.js b/client/src/views/modals/image-crop.js index 6e18c69574..18cadeb0af 100644 --- a/client/src/views/modals/image-crop.js +++ b/client/src/views/modals/image-crop.js @@ -44,8 +44,6 @@ Espo.define('views/modals/image-crop', ['views/modal', 'lib!Cropper'], function }, setup: function () { - this.header = null; - this.buttonList = [ { name: 'crop', diff --git a/client/src/views/modals/image-preview.js b/client/src/views/modals/image-preview.js index 4a02d64cec..683f18417e 100644 --- a/client/src/views/modals/image-preview.js +++ b/client/src/views/modals/image-preview.js @@ -32,8 +32,6 @@ Espo.define('views/modals/image-preview', ['views/modal', 'lib!exif'], function cssName: 'image-preview', - header: true, - template: 'modals/image-preview', size: '', @@ -61,7 +59,7 @@ Espo.define('views/modals/image-preview', ['views/modal', 'lib!exif'], function setup: function () { this.buttonList = []; - this.header = ' '; + this.headerHtml = ' '; this.navigationEnabled = (this.options.imageList && this.options.imageList.length > 1); diff --git a/client/src/views/modals/kanban-move-over.js b/client/src/views/modals/kanban-move-over.js index e5e4413625..1a4b6ec0a8 100644 --- a/client/src/views/modals/kanban-move-over.js +++ b/client/src/views/modals/kanban-move-over.js @@ -51,12 +51,12 @@ Espo.define('views/modals/kanban-move-over', 'views/modal', function (Dep) { this.statusField = this.options.statusField; - this.header = ''; - this.header += this.getLanguage().translate(this.scope, 'scopeNames'); + this.headerHtml = ''; + this.headerHtml += this.getLanguage().translate(this.scope, 'scopeNames'); if (this.model.get('name')) { - this.header += ' » ' + Handlebars.Utils.escapeExpression(this.model.get('name')); + this.headerHtml += ' » ' + Handlebars.Utils.escapeExpression(this.model.get('name')); } - this.header = iconHtml + this.header; + this.headerHtml = iconHtml + this.headerHtml; this.buttonList = [ { diff --git a/client/src/views/modals/last-viewed.js b/client/src/views/modals/last-viewed.js index 536a060c7f..788a158c40 100644 --- a/client/src/views/modals/last-viewed.js +++ b/client/src/views/modals/last-viewed.js @@ -56,8 +56,8 @@ Espo.define('views/modals/last-viewed', ['views/modal', 'search-manager'], funct } ]; - this.header = this.getLanguage().translate('LastViewed', 'scopeNamesPlural'); - this.header = '' + this.header + ''; + this.headerHtml = this.getLanguage().translate('LastViewed', 'scopeNamesPlural'); + this.headerHtml = '' + this.headerHtml + ''; this.waitForView('list'); diff --git a/client/src/views/modals/mass-convert-currency.js b/client/src/views/modals/mass-convert-currency.js index bddb1b14f3..0b9e538c2f 100644 --- a/client/src/views/modals/mass-convert-currency.js +++ b/client/src/views/modals/mass-convert-currency.js @@ -47,7 +47,7 @@ Espo.define('views/modals/mass-convert-currency', ['views/modal', 'model'], func ], setup: function () { - this.header = this.translate(this.options.entityType, 'scopeNamesPlural') + ' » ' + this.translate('convertCurrency', 'massActions'); + this.headerHtml = this.translate(this.options.entityType, 'scopeNamesPlural') + ' » ' + this.translate('convertCurrency', 'massActions'); this.addButton({ name: 'convert', text: this.translate('Update'), diff --git a/client/src/views/modals/mass-update.js b/client/src/views/modals/mass-update.js index a489496ba4..393242d805 100644 --- a/client/src/views/modals/mass-update.js +++ b/client/src/views/modals/mass-update.js @@ -32,8 +32,6 @@ Espo.define('views/modals/mass-update', 'views/modal', function (Dep) { cssName: 'mass-update', - header: false, - template: 'modals/mass-update', data: function () { @@ -76,7 +74,7 @@ Espo.define('views/modals/mass-update', 'views/modal', function (Dep) { this.selectData = this.options.selectData; this.byWhere = this.options.byWhere; - this.header = this.translate(this.scope, 'scopeNamesPlural') + ' » ' + this.translate('Mass Update'); + this.headerHtml = this.translate(this.scope, 'scopeNamesPlural') + ' » ' + this.translate('Mass Update'); this.wait(true); this.getModelFactory().create(this.scope, function (model) { diff --git a/client/src/views/modals/password-change-request.js b/client/src/views/modals/password-change-request.js index 693d8cf88a..ec5214ff0f 100644 --- a/client/src/views/modals/password-change-request.js +++ b/client/src/views/modals/password-change-request.js @@ -48,7 +48,7 @@ Espo.define('views/modals/password-change-request', 'views/modal', function (Dep } ]; - this.header = this.translate('Password Change Request', 'labels', 'User'); + this.headerHtml = this.translate('Password Change Request', 'labels', 'User'); }, actionSubmit: function () { diff --git a/client/src/views/modals/related-list.js b/client/src/views/modals/related-list.js index f6b773e1db..8a29386227 100644 --- a/client/src/views/modals/related-list.js +++ b/client/src/views/modals/related-list.js @@ -150,13 +150,13 @@ Espo.define('views/modals/related-list', ['views/modal', 'search-manager'], func }); } - this.header = ''; + this.headerHtml = ''; var iconHtml = this.getHelper().getScopeColorIconHtml(this.scope); if (this.model) { - this.header += Handlebars.Utils.escapeExpression(this.model.get('name')); - if (this.header) { - this.header += ' » '; + this.headerHtml += Handlebars.Utils.escapeExpression(this.model.get('name')); + if (this.headerHtml) { + this.headerHtml += ' » '; } } @@ -165,13 +165,13 @@ Espo.define('views/modals/related-list', ['views/modal', 'search-manager'], func title = Handlebars.Utils.escapeExpression(this.options.title); title = title.replace(/&raquo/, '»'); } - this.header += title || this.getLanguage().translate(this.link, 'links', this.model.name); + this.headerHtml += title || this.getLanguage().translate(this.link, 'links', this.model.name); if (this.options.listViewUrl) { - this.header = ''+this.header+''; + this.headerHtml = ''+this.headerHtml+''; } - this.header = iconHtml + this.header; + this.headerHtml = iconHtml + this.headerHtml; this.waitForView('list'); if (this.searchPanel) { diff --git a/client/src/views/modals/save-filters.js b/client/src/views/modals/save-filters.js index dd62be1e16..fe8d00fa9f 100644 --- a/client/src/views/modals/save-filters.js +++ b/client/src/views/modals/save-filters.js @@ -54,7 +54,7 @@ Espo.define('views/modals/save-filters', ['views/modal', 'model'], function (Dep } ]; - this.header = this.translate('Save Filters'); + this.headerHtml = this.translate('Save Filters'); var model = new Model(); this.createView('name', 'views/fields/varchar', { diff --git a/client/src/views/modals/select-category-tree-records.js b/client/src/views/modals/select-category-tree-records.js index 884b163084..9893094bdb 100644 --- a/client/src/views/modals/select-category-tree-records.js +++ b/client/src/views/modals/select-category-tree-records.js @@ -76,11 +76,11 @@ Espo.define('views/modals/select-category-tree-records', 'views/modals/select-re this.scope = this.options.scope; - this.header = ''; + this.headerHtml = ''; var iconHtml = this.getHelper().getScopeColorIconHtml(this.scope); - this.header += this.translate('Select') + ': '; - this.header += this.getLanguage().translate(this.scope, 'scopeNamesPlural'); - this.header = iconHtml + this.header; + this.headerHtml += this.translate('Select') + ': '; + this.headerHtml += this.getLanguage().translate(this.scope, 'scopeNamesPlural'); + this.headerHtml = iconHtml + this.headerHtml; this.waitForView('list'); diff --git a/client/src/views/modals/select-records.js b/client/src/views/modals/select-records.js index a207de052d..0756d89877 100644 --- a/client/src/views/modals/select-records.js +++ b/client/src/views/modals/select-records.js @@ -128,11 +128,11 @@ Espo.define('views/modals/select-records', ['views/modal', 'search-manager'], fu } } - this.header = ''; + this.headerHtml = ''; var iconHtml = this.getHelper().getScopeColorIconHtml(this.scope); - this.header += this.translate('Select') + ': '; - this.header += this.getLanguage().translate(this.scope, 'scopeNamesPlural'); - this.header = iconHtml + this.header; + this.headerHtml += this.translate('Select') + ': '; + this.headerHtml += this.getLanguage().translate(this.scope, 'scopeNamesPlural'); + this.headerHtml = iconHtml + this.headerHtml; this.waitForView('list'); if (this.searchPanel) { diff --git a/client/src/views/modals/select-template.js b/client/src/views/modals/select-template.js index 372dd92494..8b7f69d1fd 100644 --- a/client/src/views/modals/select-template.js +++ b/client/src/views/modals/select-template.js @@ -32,8 +32,6 @@ Espo.define('views/modals/select-template', ['views/modals/select-records', 'sea multiple: false, - header: false, - createButton: false, searchPanel: false, @@ -58,4 +56,3 @@ Espo.define('views/modals/select-template', ['views/modals/select-records', 'sea } }); }); - diff --git a/client/src/views/note/modals/edit.js b/client/src/views/note/modals/edit.js index 8ca27fc186..5882b1b2fe 100644 --- a/client/src/views/note/modals/edit.js +++ b/client/src/views/note/modals/edit.js @@ -34,5 +34,3 @@ Espo.define('views/note/modals/edit', 'views/modals/edit', function (Dep) { }); }); - - diff --git a/client/src/views/personal-data/modals/personal-data.js b/client/src/views/personal-data/modals/personal-data.js index 5e20b5cd3b..9beb5b2241 100644 --- a/client/src/views/personal-data/modals/personal-data.js +++ b/client/src/views/personal-data/modals/personal-data.js @@ -46,8 +46,8 @@ Espo.define('views/personal-data/modals/personal-data', ['views/modal'], functio } ]; - this.header = this.getLanguage().translate('Personal Data'); - this.header += ': ' + Handlebars.Utils.escapeExpression(this.model.get('name')); + this.headerHtml = this.getLanguage().translate('Personal Data'); + this.headerHtml += ': ' + Handlebars.Utils.escapeExpression(this.model.get('name')); if (this.getAcl().check(this.model, 'edit')) { this.buttonList.unshift({ diff --git a/client/src/views/role/modals/add-field.js b/client/src/views/role/modals/add-field.js index e5733edc41..858dec3eb0 100644 --- a/client/src/views/role/modals/add-field.js +++ b/client/src/views/role/modals/add-field.js @@ -55,7 +55,7 @@ Espo.define('views/role/modals/add-field', 'views/modal', function (Dep) { }, setup: function () { - this.header = this.translate('Add Field'); + this.headerHtml = this.translate('Add Field'); var scope = this.scope = this.options.scope; diff --git a/client/src/views/stream/modals/create-post.js b/client/src/views/stream/modals/create-post.js index 0febfeca19..12d28f6586 100644 --- a/client/src/views/stream/modals/create-post.js +++ b/client/src/views/stream/modals/create-post.js @@ -33,7 +33,7 @@ Espo.define('views/stream/modals/create-post', 'views/modal', function (Dep) { _template: '
{{{record}}}
', setup: function () { - this.header = this.translate('Create Post'); + this.headerHtml = this.translate('Create Post'); this.buttonList = [ { diff --git a/client/src/views/user/modals/access.js b/client/src/views/user/modals/access.js index 458ff7b637..0085515c5a 100644 --- a/client/src/views/user/modals/access.js +++ b/client/src/views/user/modals/access.js @@ -89,9 +89,8 @@ Espo.define('views/user/modals/access', 'views/modal', function (Dep) { final: true }); - this.header = this.translate('Access'); + this.headerHtml = this.translate('Access'); } }); }); - diff --git a/client/src/views/user/modals/detail.js b/client/src/views/user/modals/detail.js index 892a8dadfc..b829513ab1 100644 --- a/client/src/views/user/modals/detail.js +++ b/client/src/views/user/modals/detail.js @@ -39,4 +39,3 @@ Espo.define('views/user/modals/detail', 'views/modals/detail', function (Dep) { }); }); -