Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Task/set active sort column in accounts table component (#6175)

Thomas Kaula493afb52656
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6fa5ef8b0d..0cb727d58c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
+- Set the active sort column in the accounts table component
- Deprecated `activities` in the endpoint `GET api/v1/portfolio/holding/:dataSource/:symbol`
- Moved the admin service to `@ghostfolio/ui/services`
- Moved the data service to `@ghostfolio/ui/services`
diff --git a/libs/ui/src/lib/accounts-table/accounts-table.component.html b/libs/ui/src/lib/accounts-table/accounts-table.component.html
index be17c3684c..f76a5d6769 100644
--- a/libs/ui/src/lib/accounts-table/accounts-table.component.html
+++ b/libs/ui/src/lib/accounts-table/accounts-table.component.html
@@ -13,7 +13,14 @@
}
<div class="overflow-x-auto">
- <table class="gf-table w-100" mat-table matSort [dataSource]="dataSource">
+ <table
+ class="gf-table w-100"
+ mat-table
+ matSort
+ matSortActive="name"
+ matSortDirection="asc"
+ [dataSource]="dataSource"
+ >
<ng-container matColumnDef="status">
<th
*matHeaderCellDef