Add failed tasks badge, better animation

This commit is contained in:
Michael Shamoon
2022-09-27 11:00:02 -07:00
parent e0f93c26d6
commit 49054c61a4
3 changed files with 66 additions and 7 deletions

View File

@@ -58,6 +58,16 @@ export class AppFrameComponent implements ComponentCanDeactivate {
isMenuCollapsed: boolean = true
slimSidebarAnimating: boolean = false
toggleSlimSidebar(): void {
this.slimSidebarAnimating = true
this.slimSidebarEnabled = !this.slimSidebarEnabled
setTimeout(() => {
this.slimSidebarAnimating = false
}, 200) // slightly longer than css animation for slim sidebar
}
get slimSidebarEnabled(): boolean {
return this.settingsService.get(SETTINGS_KEYS.SLIM_SIDEBAR)
}