[ACS-8113] UX bug - Checkbox selections checked state should be Hyland blue not green- edit summary (#3908)

This commit is contained in:
jacekpluta
2024-07-04 08:26:47 +02:00
committed by GitHub
parent b0c1f537df
commit 457ddb2e39
18 changed files with 191 additions and 12 deletions

View File

@@ -1,6 +1,9 @@
<aca-page-layout>
<div class="aca-page-layout-header">
<h1 class="aca-page-title">{{ 'APP.BROWSE.TRASHCAN.TITLE' | translate }}</h1>
<h1 class="aca-page-title">
{{ (selectedRowItemsCount < 1 ? 'APP.BROWSE.TRASHCAN.TITLE' : 'APP.HEADER.SELECTED') | translate: { count: selectedRowItemsCount } }}
</h1>
<aca-toolbar [items]="actions"></aca-toolbar>
</div>
@@ -16,6 +19,7 @@
[navigate]="false"
[sortingMode]="'client'"
[imageResolver]="imageResolver"
(selectedItemsCountChanged)="onSelectedItemsCountChanged($event)"
[sorting]="['archivedAt', 'desc']"
[isResizingEnabled]="true"
[blurOnResize]="false"

View File

@@ -26,6 +26,7 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
import { AlfrescoApiService } from '@alfresco/adf-core';
import { TrashcanComponent } from './trashcan.component';
import { AppTestingModule } from '../../testing/app-testing.module';
import { getTitleElementText } from '../../testing/test-utils';
describe('TrashcanComponent', () => {
let fixture: ComponentFixture<TrashcanComponent>;
@@ -54,4 +55,13 @@ describe('TrashcanComponent', () => {
await fixture.whenStable();
expect(fixture.nativeElement.querySelector('adf-document-list')).not.toBeNull();
});
it('should set title based on selectedRowItemsCount', () => {
fixture.detectChanges();
expect(getTitleElementText(fixture)).toBe('APP.BROWSE.TRASHCAN.TITLE');
component.selectedRowItemsCount = 5;
fixture.detectChanges();
expect(getTitleElementText(fixture)).toBe('APP.HEADER.SELECTED');
});
});