|
|
@ -1,5 +1,5 @@ |
|
|
import { ConfirmationDialogType } from '@ghostfolio/common/enums'; |
|
|
import { ConfirmationDialogType } from '@ghostfolio/common/enums'; |
|
|
import { getLocale } from '@ghostfolio/common/helper'; |
|
|
import { getLocale, getLowercase } from '@ghostfolio/common/helper'; |
|
|
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo'; |
|
|
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo'; |
|
|
import { NotificationService } from '@ghostfolio/ui/notifications'; |
|
|
import { NotificationService } from '@ghostfolio/ui/notifications'; |
|
|
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
|
import { GfValueComponent } from '@ghostfolio/ui/value'; |
|
|
@ -32,7 +32,6 @@ import { |
|
|
trashOutline, |
|
|
trashOutline, |
|
|
walletOutline |
|
|
walletOutline |
|
|
} from 'ionicons/icons'; |
|
|
} from 'ionicons/icons'; |
|
|
import { get } from 'lodash'; |
|
|
|
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { Subject, Subscription } from 'rxjs'; |
|
|
import { Subject, Subscription } from 'rxjs'; |
|
|
|
|
|
|
|
|
@ -133,8 +132,9 @@ export class GfAccountsTableComponent implements OnChanges, OnDestroy { |
|
|
this.isLoading = true; |
|
|
this.isLoading = true; |
|
|
|
|
|
|
|
|
this.dataSource = new MatTableDataSource(this.accounts); |
|
|
this.dataSource = new MatTableDataSource(this.accounts); |
|
|
|
|
|
this.dataSource.sortingDataAccessor = getLowercase; |
|
|
|
|
|
|
|
|
this.dataSource.sort = this.sort; |
|
|
this.dataSource.sort = this.sort; |
|
|
this.dataSource.sortingDataAccessor = get; |
|
|
|
|
|
|
|
|
|
|
|
if (this.accounts) { |
|
|
if (this.accounts) { |
|
|
this.isLoading = false; |
|
|
this.isLoading = false; |
|
|
|