email fixes

This commit is contained in:
Yuri Kuznetsov
2022-02-01 11:45:31 +02:00
parent a529edc4b2
commit d355db6bb1
3 changed files with 6 additions and 6 deletions

View File

@@ -3,8 +3,8 @@
"label":"",
"rows":[
[{"name":"dateSent"},{"name":"from"}],
[false, {"name":"to"}],
[{"name":"parent"}, {"name":"cc"}],
[{"name":"parent"}, {"name":"to"}],
[false, {"name":"cc"}],
[false, {"name":"bcc"}],
[{"name":"subject","fullWidth":true}],
[{"name":"body","fullWidth":true}],

View File

@@ -3,8 +3,8 @@
"label":"",
"rows":[
[{"name":"dateSent", "readOnly": true},{"name":"from", "readOnly": true}],
[false, {"name":"to", "readOnly": true}],
[{"name":"parent"}, {"name":"cc", "readOnly": true}],
[{"name":"parent"}, {"name":"to", "readOnly": true}],
[false, {"name":"cc", "readOnly": true}],
[false, {"name":"bcc", "readOnly": true}],
[{"name":"body","fullWidth":true, "readOnly": true, "customLabel": ""}],
[{"name":"attachments", "readOnly": true, "fullWidth":true, "customLabel": ""}]

View File

@@ -82,7 +82,7 @@ define('views/email/record/edit', ['views/record/edit', 'views/email/record/deta
},
handleCcField: function () {
if (!this.model.get('cc')) {
if (!this.model.get('cc') && this.model.get('status') !== 'Draft') {
this.hideField('cc');
} else {
this.showField('cc');
@@ -90,7 +90,7 @@ define('views/email/record/edit', ['views/record/edit', 'views/email/record/deta
},
handleBccField: function () {
if (!this.model.get('bcc')) {
if (!this.model.get('bcc') && this.model.get('status') !== 'Draft') {
this.hideField('bcc');
} else {
this.showField('bcc');