mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ACS-8749] View More tags button no longer shows when all tags are removed from a node (#10285)
This commit is contained in:
parent
a963de5870
commit
5f7645b9f9
@ -26,7 +26,7 @@
|
|||||||
<button
|
<button
|
||||||
data-automation-id="adf-dynamic-chip-list-view-more-button"
|
data-automation-id="adf-dynamic-chip-list-view-more-button"
|
||||||
mat-button
|
mat-button
|
||||||
[hidden]="!limitChipsDisplayed"
|
[hidden]="chipsToDisplay.length === 0 || !limitChipsDisplayed"
|
||||||
[style.left.px]="viewMoreButtonLeftOffset"
|
[style.left.px]="viewMoreButtonLeftOffset"
|
||||||
[style.top.px]="viewMoreButtonTop"
|
[style.top.px]="viewMoreButtonTop"
|
||||||
class="adf-dynamic-chip-list-view-more-button"
|
class="adf-dynamic-chip-list-view-more-button"
|
||||||
|
@ -317,5 +317,15 @@ describe('DynamicChipListComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(viewMoreButton.hidden).toBeTrue();
|
expect(viewMoreButton.hidden).toBeTrue();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
it('should not render View more button if there are no chips', fakeAsync(() => {
|
||||||
|
renderChips();
|
||||||
|
component.chips = [];
|
||||||
|
tick();
|
||||||
|
fixture.detectChanges();
|
||||||
|
|
||||||
|
expect(component.chipsToDisplay).toEqual([]);
|
||||||
|
expect(findViewMoreButton().hidden).toBeTrue();
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user