|
@ -13,6 +13,7 @@ import { ActivatedRoute, Router } from '@angular/router'; |
|
|
import { CreatePlatformDto } from '@ghostfolio/api/app/platform/create-platform.dto'; |
|
|
import { CreatePlatformDto } from '@ghostfolio/api/app/platform/create-platform.dto'; |
|
|
import { UpdatePlatformDto } from '@ghostfolio/api/app/platform/update-platform.dto'; |
|
|
import { UpdatePlatformDto } from '@ghostfolio/api/app/platform/update-platform.dto'; |
|
|
import { AdminService } from '@ghostfolio/client/services/admin.service'; |
|
|
import { AdminService } from '@ghostfolio/client/services/admin.service'; |
|
|
|
|
|
import { DataService } from '@ghostfolio/client/services/data.service'; |
|
|
import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
import { Platform } from '@prisma/client'; |
|
|
import { Platform } from '@prisma/client'; |
|
|
import { get } from 'lodash'; |
|
|
import { get } from 'lodash'; |
|
@ -40,6 +41,7 @@ export class AdminPlatformComponent implements OnInit, OnDestroy { |
|
|
public constructor( |
|
|
public constructor( |
|
|
private adminService: AdminService, |
|
|
private adminService: AdminService, |
|
|
private changeDetectorRef: ChangeDetectorRef, |
|
|
private changeDetectorRef: ChangeDetectorRef, |
|
|
|
|
|
private dataService: DataService, |
|
|
private deviceService: DeviceDetectorService, |
|
|
private deviceService: DeviceDetectorService, |
|
|
private dialog: MatDialog, |
|
|
private dialog: MatDialog, |
|
|
private route: ActivatedRoute, |
|
|
private route: ActivatedRoute, |
|
@ -119,6 +121,8 @@ export class AdminPlatformComponent implements OnInit, OnDestroy { |
|
|
this.dataSource.sort = this.sort; |
|
|
this.dataSource.sort = this.sort; |
|
|
this.dataSource.sortingDataAccessor = get; |
|
|
this.dataSource.sortingDataAccessor = get; |
|
|
|
|
|
|
|
|
|
|
|
this.dataService.updateInfo(); |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|