Fix edit icon for row grids

This commit is contained in:
Lance Edgar 2019-05-23 17:12:19 -05:00
parent d7c8b80da5
commit a37b0229a0

View file

@ -456,7 +456,8 @@ class MasterView(View):
# edit action # edit action
if self.rows_editable: if self.rows_editable:
actions.append(self.make_action('edit', icon='pencil', url=self.row_edit_action_url)) icon = 'edit' if use_buefy else 'pencil'
actions.append(self.make_action('edit', icon=icon, url=self.row_edit_action_url))
# delete action # delete action
if self.rows_deletable and self.request.has_perm('{}.delete_row'.format(permission_prefix)): if self.rows_deletable and self.request.has_perm('{}.delete_row'.format(permission_prefix)):