Browse Source
Task/remove unused OnDestroy hook in resources page component (#6367)
* Remove unused OnDestroy hook
pull/6396/head^2
Thomas Kaul
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
8 deletions
-
apps/client/src/app/pages/resources/resources-page.component.ts
|
|
@ -13,7 +13,6 @@ import { |
|
|
readerOutline |
|
|
readerOutline |
|
|
} from 'ionicons/icons'; |
|
|
} from 'ionicons/icons'; |
|
|
import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
import { Subject } from 'rxjs'; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
host: { class: 'page has-tabs' }, |
|
|
host: { class: 'page has-tabs' }, |
|
|
@ -47,8 +46,6 @@ export class ResourcesPageComponent implements OnInit { |
|
|
} |
|
|
} |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
private unsubscribeSubject = new Subject<void>(); |
|
|
|
|
|
|
|
|
|
|
|
public constructor(private deviceService: DeviceDetectorService) { |
|
|
public constructor(private deviceService: DeviceDetectorService) { |
|
|
addIcons({ bookOutline, libraryOutline, newspaperOutline, readerOutline }); |
|
|
addIcons({ bookOutline, libraryOutline, newspaperOutline, readerOutline }); |
|
|
} |
|
|
} |
|
|
@ -56,9 +53,4 @@ export class ResourcesPageComponent implements OnInit { |
|
|
public ngOnInit() { |
|
|
public ngOnInit() { |
|
|
this.deviceType = this.deviceService.getDeviceInfo().deviceType; |
|
|
this.deviceType = this.deviceService.getDeviceInfo().deviceType; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
|
|
|
this.unsubscribeSubject.next(); |
|
|
|
|
|
this.unsubscribeSubject.complete(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|