mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Save tour completion, hide welcome widget
This commit is contained in:
@@ -484,7 +484,22 @@ export class SettingsService {
|
||||
offerTour(): boolean {
|
||||
return (
|
||||
!this.savedViewService.loading &&
|
||||
this.savedViewService.dashboardViews.length == 0
|
||||
this.savedViewService.dashboardViews.length == 0 &&
|
||||
!this.get(SETTINGS_KEYS.TOUR_COMPLETE)
|
||||
)
|
||||
}
|
||||
|
||||
completeTour() {
|
||||
const tourCompleted = this.get(SETTINGS_KEYS.TOUR_COMPLETE)
|
||||
if (!tourCompleted) {
|
||||
this.set(SETTINGS_KEYS.TOUR_COMPLETE, true)
|
||||
this.storeSettings()
|
||||
.pipe(first())
|
||||
.subscribe(() => {
|
||||
this.toastService.showInfo(
|
||||
$localize`You can restart the tour from the settings page.`
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user