Browse Source
Task/add loading indicator to access table (#7437)
* Add loading indicator
* Update changelog
pull/7442/head^2
Thomas Kaul
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
21 additions and
0 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/access-table/access-table.component.html
-
apps/client/src/app/components/access-table/access-table.component.ts
|
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
- Added a loading indicator to the access table to share the portfolio |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Deprecated `firstOrderDate` in favor of `dateOfFirstActivity` in the `GET api/v2/portfolio/performance` endpoint |
|
|
|
|
|
|
|
@ -105,3 +105,14 @@ |
|
|
|
<tr *matRowDef="let row; columns: displayedColumns()" mat-row></tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
|
|
|
|
@if (isLoading()) { |
|
|
|
<ngx-skeleton-loader |
|
|
|
animation="pulse" |
|
|
|
class="px-4 py-3" |
|
|
|
[theme]="{ |
|
|
|
height: '1.5rem', |
|
|
|
width: '100%' |
|
|
|
}" |
|
|
|
/> |
|
|
|
} |
|
|
|
|
|
|
|
@ -31,6 +31,7 @@ import { |
|
|
|
removeCircleOutline |
|
|
|
} from 'ionicons/icons'; |
|
|
|
import ms from 'ms'; |
|
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
|
@ -40,6 +41,7 @@ import ms from 'ms'; |
|
|
|
MatButtonModule, |
|
|
|
MatMenuModule, |
|
|
|
MatTableModule, |
|
|
|
NgxSkeletonLoaderModule, |
|
|
|
RouterModule |
|
|
|
], |
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA], |
|
|
|
@ -68,6 +70,10 @@ export class GfAccessTableComponent { |
|
|
|
return columns; |
|
|
|
}); |
|
|
|
|
|
|
|
protected readonly isLoading = computed(() => { |
|
|
|
return !this.accesses(); |
|
|
|
}); |
|
|
|
|
|
|
|
private readonly clipboard = inject(Clipboard); |
|
|
|
private readonly notificationService = inject(NotificationService); |
|
|
|
private readonly snackBar = inject(MatSnackBar); |
|
|
|
|