From 51b904b9d94a028db6f22b38f15e105d83be7d97 Mon Sep 17 00:00:00 2001 From: Murhaf Sousli Date: Sat, 7 Apr 2018 07:53:32 +0300 Subject: [PATCH] fix(ShareButtonsComponent): Hide expand button, closes #255 --- lib/buttons/src/share-buttons.component.html | 3 ++- lib/buttons/src/share-buttons.component.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/buttons/src/share-buttons.component.html b/lib/buttons/src/share-buttons.component.html index ef49d4bd..e93d4514 100644 --- a/lib/buttons/src/share-buttons.component.html +++ b/lib/buttons/src/share-buttons.component.html @@ -19,7 +19,8 @@
- diff --git a/lib/buttons/src/share-buttons.component.ts b/lib/buttons/src/share-buttons.component.ts index 7c7a1677..5a081044 100644 --- a/lib/buttons/src/share-buttons.component.ts +++ b/lib/buttons/src/share-buttons.component.ts @@ -38,7 +38,7 @@ export class ShareButtonsComponent implements OnInit, OnDestroy { userButtons: [], selectedButtons: [], expanded: true, - shownCount: 0 + shownCount: Object.keys(this.share.config.prop).length }); @Input() theme = this.share.theme;