mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 10:07:15 +01:00
Better migration of update checking settings, offer reload, strip backend_setting from db
This commit is contained in:
parent
9e2430da46
commit
c87f60c605
6 changed files with 43 additions and 32 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, HostListener } from '@angular/core'
|
||||
import { Component, HostListener, OnInit } from '@angular/core'
|
||||
import { FormControl } from '@angular/forms'
|
||||
import { ActivatedRoute, Router } from '@angular/router'
|
||||
import { from, Observable } from 'rxjs'
|
||||
|
|
@ -32,7 +32,7 @@ import { ToastService } from 'src/app/services/toast.service'
|
|||
templateUrl: './app-frame.component.html',
|
||||
styleUrls: ['./app-frame.component.scss'],
|
||||
})
|
||||
export class AppFrameComponent implements ComponentCanDeactivate {
|
||||
export class AppFrameComponent implements OnInit, ComponentCanDeactivate {
|
||||
constructor(
|
||||
public router: Router,
|
||||
private activatedRoute: ActivatedRoute,
|
||||
|
|
@ -44,11 +44,13 @@ export class AppFrameComponent implements ComponentCanDeactivate {
|
|||
public settingsService: SettingsService,
|
||||
public tasksService: TasksService,
|
||||
private readonly toastService: ToastService
|
||||
) {
|
||||
if (settingsService.updateCheckingEnabled) {
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
if (this.settingsService.get(SETTINGS_KEYS.UPDATE_CHECKING_ENABLED)) {
|
||||
this.checkForUpdates()
|
||||
}
|
||||
tasksService.reload()
|
||||
this.tasksService.reload()
|
||||
}
|
||||
|
||||
versionString = `${environment.appTitle} ${environment.version}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue