cs fix
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('crm:views/record/row-actions/activities-dashlet', 'views/record/row-actions/view-and-edit', function (Dep) {
|
||||
define('crm:views/record/row-actions/activities-dashlet', 'views/record/row-actions/view-and-edit', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -37,10 +37,9 @@ Espo.define('crm:views/record/row-actions/activities-dashlet', 'views/record/row
|
||||
|
||||
actionList.forEach(function (item) {
|
||||
item.data = item.data || {};
|
||||
item.data.scope = this.model.name
|
||||
item.data.scope = this.model.name;
|
||||
}, this);
|
||||
|
||||
|
||||
if (scope === 'Task') {
|
||||
if (this.options.acl.edit && !~['Completed', 'Canceled'].indexOf(this.model.get('status'))) {
|
||||
actionList.push({
|
||||
@@ -71,6 +70,7 @@ Espo.define('crm:views/record/row-actions/activities-dashlet', 'views/record/row
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.acl.edit) {
|
||||
actionList.push({
|
||||
action: 'quickRemove',
|
||||
@@ -83,7 +83,7 @@ Espo.define('crm:views/record/row-actions/activities-dashlet', 'views/record/row
|
||||
}
|
||||
|
||||
return actionList;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('crm:views/record/row-actions/activities', 'views/record/row-actions/relationship', function (Dep) {
|
||||
define('crm:views/record/row-actions/activities', 'views/record/row-actions/relationship', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -39,6 +39,7 @@ Espo.define('crm:views/record/row-actions/activities', 'views/record/row-actions
|
||||
},
|
||||
link: '#' + this.model.name + '/view/' + this.model.id
|
||||
}];
|
||||
|
||||
if (this.options.acl.edit) {
|
||||
list.push({
|
||||
action: 'quickEdit',
|
||||
@@ -48,6 +49,7 @@ Espo.define('crm:views/record/row-actions/activities', 'views/record/row-actions
|
||||
},
|
||||
link: '#' + this.model.name + '/edit/' + this.model.id
|
||||
});
|
||||
|
||||
if (this.model.name == 'Meeting' || this.model.name == 'Call') {
|
||||
list.push({
|
||||
action: 'setHeld',
|
||||
@@ -56,6 +58,7 @@ Espo.define('crm:views/record/row-actions/activities', 'views/record/row-actions
|
||||
id: this.model.id
|
||||
}
|
||||
});
|
||||
|
||||
list.push({
|
||||
action: 'setNotHeld',
|
||||
html: this.translate('Set Not Held', 'labels', 'Meeting'),
|
||||
@@ -65,6 +68,7 @@ Espo.define('crm:views/record/row-actions/activities', 'views/record/row-actions
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.acl.delete) {
|
||||
list.push({
|
||||
action: 'removeRelated',
|
||||
@@ -74,10 +78,9 @@ Espo.define('crm:views/record/row-actions/activities', 'views/record/row-actions
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('crm:views/record/row-actions/history', 'views/record/row-actions/relationship', function (Dep) {
|
||||
define('crm:views/record/row-actions/history', 'views/record/row-actions/relationship', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -39,6 +39,7 @@ Espo.define('crm:views/record/row-actions/history', 'views/record/row-actions/re
|
||||
},
|
||||
link: '#' + this.model.name + '/view/' + this.model.id
|
||||
}];
|
||||
|
||||
if (this.model.name == 'Email') {
|
||||
list.push({
|
||||
action: 'reply',
|
||||
@@ -48,6 +49,7 @@ Espo.define('crm:views/record/row-actions/history', 'views/record/row-actions/re
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (this.options.acl.edit) {
|
||||
list = list.concat([
|
||||
{
|
||||
@@ -60,6 +62,7 @@ Espo.define('crm:views/record/row-actions/history', 'views/record/row-actions/re
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
if (this.options.acl.delete) {
|
||||
list.push({
|
||||
action: 'removeRelated',
|
||||
@@ -69,9 +72,9 @@ Espo.define('crm:views/record/row-actions/history', 'views/record/row-actions/re
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('crm:views/record/row-actions/relationship-target', 'views/record/row-actions/relationship-unlink-only', function (Dep) {
|
||||
define('crm:views/record/row-actions/relationship-target', 'views/record/row-actions/relationship-unlink-only', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -52,9 +52,9 @@ Espo.define('crm:views/record/row-actions/relationship-target', 'views/record/ro
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('crm:views/record/row-actions/tasks', 'views/record/row-actions/relationship-no-unlink', function (Dep) {
|
||||
define('crm:views/record/row-actions/tasks', 'views/record/row-actions/relationship-no-unlink', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -39,6 +39,7 @@ Espo.define('crm:views/record/row-actions/tasks', 'views/record/row-actions/rela
|
||||
},
|
||||
link: '#' + this.model.name + '/view/' + this.model.id
|
||||
}];
|
||||
|
||||
if (this.options.acl.edit) {
|
||||
list.push({
|
||||
action: 'quickEdit',
|
||||
@@ -59,6 +60,7 @@ Espo.define('crm:views/record/row-actions/tasks', 'views/record/row-actions/rela
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.acl.delete) {
|
||||
list.push({
|
||||
action: 'removeRelated',
|
||||
@@ -68,9 +70,9 @@ Espo.define('crm:views/record/row-actions/tasks', 'views/record/row-actions/rela
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user