mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 18:46:52 +01:00
menu closing on mobile
This commit is contained in:
parent
8e7a3d309f
commit
6c0e0755b9
2 changed files with 15 additions and 9 deletions
|
|
@ -27,6 +27,10 @@ export class AppFrameComponent implements OnInit, OnDestroy {
|
|||
|
||||
isMenuCollapsed: boolean = true
|
||||
|
||||
closeMenu() {
|
||||
this.isMenuCollapsed = true
|
||||
}
|
||||
|
||||
searchField = new FormControl('')
|
||||
|
||||
openDocuments: PaperlessDocument[] = []
|
||||
|
|
@ -63,10 +67,12 @@ export class AppFrameComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
search() {
|
||||
this.closeMenu()
|
||||
this.router.navigate(['search'], {queryParams: {query: this.searchField.value}})
|
||||
}
|
||||
|
||||
closeAll() {
|
||||
this.closeMenu()
|
||||
this.openDocumentsService.closeAll()
|
||||
|
||||
// TODO: is there a better way to do this?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue