set not held row action

This commit is contained in:
yuri
2015-04-23 15:17:47 +03:00
parent 286ec0325d
commit 796830d2dd
2 changed files with 12 additions and 5 deletions
@@ -18,14 +18,14 @@
* You should have received a copy of the GNU General Public License
* along with EspoCRM. If not, see http://www.gnu.org/licenses/.
************************************************************************/
Espo.define('Crm:Views.Call.Record.RowActions.Default', 'Views.Record.RowActions.Default', function (Dep) {
return Dep.extend({
getActions: function () {
var actions = Dep.prototype.getActions.call(this);
if (this.options.acl.edit && !~['Held', 'Not Held'].indexOf(this.model.get('status'))) {
actions.push({
action: 'setHeld',
@@ -42,9 +42,9 @@ Espo.define('Crm:Views.Call.Record.RowActions.Default', 'Views.Record.RowActions
}
});
}
return actions;
},
});
});
@@ -34,6 +34,13 @@ Espo.define('Crm:Views.Meeting.Record.RowActions.Default', 'Views.Record.RowActi
id: this.model.id
}
});
actions.push({
action: 'setNotHeld',
label: 'Set Not Held',
data: {
id: this.model.id
}
});
}
return actions;