mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Restore "[ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)" (#3919)
* [ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908) * [ACS-8113] dataTable checkbox e2e fix 1 --------- Co-authored-by: jacekpluta <73617938+jacekpluta@users.noreply.github.com> Co-authored-by: datguychen <adam.swiderski@hyland.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<aca-page-layout>
|
||||
<div class="aca-page-layout-header">
|
||||
<h1 class="aca-page-title">{{ 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE' | translate }}</h1>
|
||||
<h1 class="aca-page-title">
|
||||
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
|
||||
</h1>
|
||||
<aca-toolbar [items]="actions"></aca-toolbar>
|
||||
</div>
|
||||
|
||||
@@ -17,8 +19,10 @@
|
||||
[navigate]="false"
|
||||
[sorting]="['title', 'asc']"
|
||||
[sortingMode]="'client'"
|
||||
[displayCheckboxesOnHover]="true"
|
||||
(node-dblclick)="handleNodeClick($event)"
|
||||
[imageResolver]="imageResolver"
|
||||
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
|
||||
[isResizingEnabled]="true"
|
||||
[blurOnResize]="false"
|
||||
(name-click)="handleNodeClick($event)"
|
||||
|
@@ -33,6 +33,7 @@ import { RouterEffects } from '@alfresco/aca-shared/store';
|
||||
import { of, throwError } from 'rxjs';
|
||||
import { LibraryEffects } from '../../store/effects';
|
||||
import { NodeEntry } from '@alfresco/js-api';
|
||||
import { getTitleElementText } from '../../testing/test-utils';
|
||||
|
||||
describe('FavoriteLibrariesComponent', () => {
|
||||
let fixture: ComponentFixture<FavoriteLibrariesComponent>;
|
||||
@@ -99,6 +100,17 @@ describe('FavoriteLibrariesComponent', () => {
|
||||
expect(component.pagination).toBe(null);
|
||||
expect(component.isLoading).toBe(false);
|
||||
});
|
||||
|
||||
it('should set title based on selectedRowItemsCount', () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE');
|
||||
|
||||
component.selectedRowItemsCount = 5;
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
|
||||
});
|
||||
});
|
||||
|
||||
describe('Node navigation', () => {
|
||||
|
Reference in New Issue
Block a user