- this.configService.loadConfig();
- this.videoService.loadVideoCategories();
- this.videoService.loadVideoLicences();
+ this.configService.loadConfig()
+ this.videoService.loadVideoCategories()
+ this.videoService.loadVideoLicences()
+ this.videoService.loadVideoLanguages()
+
+ // Do not display menu on small screens
+ if (window.innerWidth < 600) {
+ this.isMenuDisplayed = false
+ }
+ }
+
+ isInAdmin () {
+ return this.router.url.indexOf('/admin/') !== -1