From 27abbb5ca019da0c794b2ee8e0cc6256deebff58 Mon Sep 17 00:00:00 2001 From: tibing Date: Sat, 6 May 2017 16:48:21 +0300 Subject: [PATCH] fix(table): hide actions when no actions --- src/ng2-smart-table/lib/grid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng2-smart-table/lib/grid.ts b/src/ng2-smart-table/lib/grid.ts index 78629c814..f87c720bc 100644 --- a/src/ng2-smart-table/lib/grid.ts +++ b/src/ng2-smart-table/lib/grid.ts @@ -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 {