From 9bdaa59657df35da98448585315e0072010799fb Mon Sep 17 00:00:00 2001 From: Silviu Popa Date: Thu, 13 Aug 2020 18:50:54 +0300 Subject: [PATCH] [ACA-3848] - change default sorting (#1600) Co-authored-by: Silviu Popa --- e2e/protractor.excludes.json | 3 +-- e2e/suites/list-views/personal-files.test.ts | 2 +- src/app/components/files/files.component.html | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/e2e/protractor.excludes.json b/e2e/protractor.excludes.json index 5cf378700..d3258b377 100644 --- a/e2e/protractor.excludes.json +++ b/e2e/protractor.excludes.json @@ -17,6 +17,5 @@ "C586779" : "Include once ACA starts using ACS 7+, https://issues.alfresco.com/jira/browse/ACA-3601", "C586780" : "Include once ACA starts using ACS 7+, https://issues.alfresco.com/jira/browse/ACA-3601", "C586781" : "Include once ACA starts using ACS 7+, https://issues.alfresco.com/jira/browse/ACA-3601", - "C280080": "https://issues.alfresco.com/jira/browse/ACA-3822", - "C280083": "https://issues.alfresco.com/jira/browse/ACA-3823" + "C280080": "https://issues.alfresco.com/jira/browse/ACA-3822" } diff --git a/e2e/suites/list-views/personal-files.test.ts b/e2e/suites/list-views/personal-files.test.ts index ac1243937..caebbf455 100755 --- a/e2e/suites/list-views/personal-files.test.ts +++ b/e2e/suites/list-views/personal-files.test.ts @@ -92,7 +92,7 @@ describe('Personal Files', () => { }); it('[C217143] has default sorted column', async () => { - expect(await dataTable.getSortedColumnHeaderText()).toBe('Modified'); + expect(await dataTable.getSortedColumnHeaderText()).toBe('Name'); }); it('[C213242] has user created content', async () => { diff --git a/src/app/components/files/files.component.html b/src/app/components/files/files.component.html index f13ab14d3..bd491e8ec 100644 --- a/src/app/components/files/files.component.html +++ b/src/app/components/files/files.component.html @@ -27,7 +27,7 @@ [node]="nodeResult" [allowDropFiles]="true" [navigate]="false" - [sorting]="['modifiedAt', 'DESC']" + [sorting]="['name', 'ASC']" [imageResolver]="imageResolver" (node-dblclick)="navigateTo($event.detail?.node)" (name-click)="navigateTo($event.detail?.node)"