Skip to content

Commit

Permalink
fix(table): hide actions when no actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tibing-old-email committed May 6, 2017
1 parent e526dc6 commit 27abbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng2-smart-table/lib/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Grid {
}

isActionsVisible(): boolean {
return this.getSetting('actions.add') || this.getSetting('actions.edit') || this.getSetting('actions.delete') || this.getSetting('actions.custom');
return this.getSetting('actions.add') || this.getSetting('actions.edit') || this.getSetting('actions.delete') || this.getSetting('actions.custom').length;
}

isMultiSelectVisible(): boolean {
Expand Down

0 comments on commit 27abbb5

Please sign in to comment.