From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 28 Apr 2023 14:07:59 +0000 (-0700) Subject: Close all docs on logout X-Git-Tag: v1.14.3~1^2~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3232%2Fhead;p=thirdparty%2Fpaperless-ngx.git Close all docs on logout --- diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html index 90e75be583..be0240eb56 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.html +++ b/src-ui/src/app/components/app-frame/app-frame.component.html @@ -44,7 +44,7 @@ Settings - + Logout diff --git a/src-ui/src/app/components/app-frame/app-frame.component.ts b/src-ui/src/app/components/app-frame/app-frame.component.ts index 24b7e8f230..cff4366da1 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.ts +++ b/src-ui/src/app/components/app-frame/app-frame.component.ts @@ -243,4 +243,8 @@ export class AppFrameComponent this.checkForUpdates() } } + + onLogout() { + this.openDocumentsService.closeAll() + } }