mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Merge pull request #3232 from paperless-ngx/fix/issue-3231
Fix: close all docs on logout
This commit is contained in:
commit
e6df581909
@ -44,7 +44,7 @@
|
|||||||
<use xlink:href="assets/bootstrap-icons.svg#gear"/>
|
<use xlink:href="assets/bootstrap-icons.svg#gear"/>
|
||||||
</svg><ng-container i18n>Settings</ng-container>
|
</svg><ng-container i18n>Settings</ng-container>
|
||||||
</a>
|
</a>
|
||||||
<a ngbDropdownItem class="nav-link" href="accounts/logout/">
|
<a ngbDropdownItem class="nav-link" href="accounts/logout/" (click)="onLogout()">
|
||||||
<svg class="sidebaricon me-2" fill="currentColor">
|
<svg class="sidebaricon me-2" fill="currentColor">
|
||||||
<use xlink:href="assets/bootstrap-icons.svg#door-open"/>
|
<use xlink:href="assets/bootstrap-icons.svg#door-open"/>
|
||||||
</svg><ng-container i18n>Logout</ng-container>
|
</svg><ng-container i18n>Logout</ng-container>
|
||||||
|
@ -243,4 +243,8 @@ export class AppFrameComponent
|
|||||||
this.checkForUpdates()
|
this.checkForUpdates()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onLogout() {
|
||||||
|
this.openDocumentsService.closeAll()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user