fix tour placement issues, basic offerTour method

This commit is contained in:
Michael Shamoon
2022-09-22 00:07:41 -07:00
parent 2b8faadd2b
commit f638bd5d22
6 changed files with 17 additions and 10 deletions

View File

@@ -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
)
}
}