aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-13 10:44:34 +0100
committerChocobozzz <me@florianbigard.com>2021-01-13 10:44:34 +0100
commitd95bc7029012c9f28144fd58948962c49910a1ae (patch)
tree864832300ce3c5be1141622b06a324bf75a48298 /client/src/app/app.component.ts
parent9c1a88e3a1dc2a9d97ba0d798c664234541f1dba (diff)
downloadPeerTube-d95bc7029012c9f28144fd58948962c49910a1ae.tar.gz
PeerTube-d95bc7029012c9f28144fd58948962c49910a1ae.tar.zst
PeerTube-d95bc7029012c9f28144fd58948962c49910a1ae.zip
Add title to left menu toggle
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r--client/src/app/app.component.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 75f4bdfe6..3d1026ac4 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -103,6 +103,12 @@ export class AppComponent implements OnInit, AfterViewInit {
103 this.pluginService.initializeCustomModal(this.customModal) 103 this.pluginService.initializeCustomModal(this.customModal)
104 } 104 }
105 105
106 getToggleTitle () {
107 if (this.menu.isDisplayed()) return $localize`Close the left menu`
108
109 return $localize`Open the left menu`
110 }
111
106 isUserLoggedIn () { 112 isUserLoggedIn () {
107 return this.authService.isLoggedIn() 113 return this.authService.isLoggedIn()
108 } 114 }