mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-28 09:18:08 +01:00
fix tour placement issues, basic offerTour method
This commit is contained in:
parent
5e45b1f230
commit
0e03633ed0
6 changed files with 17 additions and 10 deletions
|
|
@ -23,6 +23,7 @@ import {
|
|||
SETTINGS,
|
||||
SETTINGS_KEYS,
|
||||
} from '../data/paperless-uisettings'
|
||||
import { SavedViewService } from './rest/saved-view.service'
|
||||
import { ToastService } from './toast.service'
|
||||
|
||||
export interface LanguageOption {
|
||||
|
|
@ -56,7 +57,8 @@ export class SettingsService {
|
|||
private meta: Meta,
|
||||
@Inject(LOCALE_ID) private localeId: string,
|
||||
protected http: HttpClient,
|
||||
private toastService: ToastService
|
||||
private toastService: ToastService,
|
||||
private savedViewService: SavedViewService
|
||||
) {
|
||||
this.renderer = rendererFactory.createRenderer(null, null)
|
||||
}
|
||||
|
|
@ -448,7 +450,9 @@ export class SettingsService {
|
|||
}
|
||||
|
||||
offerTour(): boolean {
|
||||
return true
|
||||
// !savedViewService.loading && savedViewService.dashboardViews.length == 0
|
||||
return (
|
||||
!this.savedViewService.loading &&
|
||||
this.savedViewService.dashboardViews.length == 0
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue