mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-24 00:59:35 -06:00
Update document-list.component.ts
This commit is contained in:
@@ -22,7 +22,7 @@ import {
|
|||||||
} from '@ng-bootstrap/ng-bootstrap'
|
} from '@ng-bootstrap/ng-bootstrap'
|
||||||
import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'
|
import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'
|
||||||
import { TourNgBootstrap } from 'ngx-ui-tour-ng-bootstrap'
|
import { TourNgBootstrap } from 'ngx-ui-tour-ng-bootstrap'
|
||||||
import { filter, first, map, of, Subject, switchMap, takeUntil } from 'rxjs'
|
import { filter, first, map, Subject, switchMap, takeUntil } from 'rxjs'
|
||||||
import {
|
import {
|
||||||
DEFAULT_DISPLAY_FIELDS,
|
DEFAULT_DISPLAY_FIELDS,
|
||||||
DisplayField,
|
DisplayField,
|
||||||
@@ -506,10 +506,6 @@ export class DocumentListComponent
|
|||||||
showOnDashboard: boolean,
|
showOnDashboard: boolean,
|
||||||
showInSideBar: boolean
|
showInSideBar: boolean
|
||||||
) {
|
) {
|
||||||
if (!showOnDashboard && !showInSideBar) {
|
|
||||||
return of(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
const dashboardViewIds = this.savedViewService.dashboardViews.map(
|
const dashboardViewIds = this.savedViewService.dashboardViews.map(
|
||||||
(v) => v.id
|
(v) => v.id
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user