From f7b6dcf409b15da69911e90fa89b5526d10caadb Mon Sep 17 00:00:00 2001 From: Jonathan Labreuille Date: Wed, 27 Apr 2016 13:31:30 +0200 Subject: [PATCH] - Remove bulk actions from forms - form name is now a link to the edit form page - added "row-title" class so that the name is "bigger" --- assets/js/src/forms/list.jsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/assets/js/src/forms/list.jsx b/assets/js/src/forms/list.jsx index fe607c3bea..4b34f65ab7 100644 --- a/assets/js/src/forms/list.jsx +++ b/assets/js/src/forms/list.jsx @@ -102,14 +102,6 @@ const item_actions = [ } ]; -const bulk_actions = [ - { - name: 'trash', - label: MailPoet.I18n.t('trash'), - onSuccess: messages.onTrash - } -]; - const FormList = React.createClass({ createForm() { MailPoet.Ajax.post({ @@ -138,7 +130,10 @@ const FormList = React.createClass({
- { form.name } + { form.name } { actions } @@ -171,7 +166,6 @@ const FormList = React.createClass({ endpoint="forms" onRenderItem={ this.renderItem } columns={ columns } - bulk_actions={ bulk_actions } item_actions={ item_actions } />