Skip to content
Snippets Groups Projects
Commit 50451331 authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch 'mobile-footer' into 'master'

Only show labels in footer on desktop view

Closes #365

See merge request arsnova/arsnova-lite!343
parents d5b727f5 86a7473a
No related merge requests found
......@@ -2,21 +2,29 @@
<mat-toolbar id="footer-toolbar">
<button mat-button *ngIf="router.url !== '/home'" (click)="navToBlog()">
<mat-icon>notes</mat-icon>
Blog
<span *ngIf="deviceType === 'desktop'">
{{ 'footer.blog' | translate }}
</span>
</button>
<button mat-button *ngIf="router.url === '/home'" (click)="navToDemoSession()">
<mat-icon>input</mat-icon>
{{ 'footer.demo' | translate}}
<span *ngIf="deviceType === 'desktop'">
{{ 'footer.demo' | translate}}
</span>
</button>
<span class="fill-remaining-space"></span>
<button mat-button (click)="navToDSGVO()">
<mat-icon>security</mat-icon>
{{ 'footer.dsgvo' | translate}}
<span *ngIf="deviceType === 'desktop'">
{{ 'footer.dsgvo' | translate}}
</span>
</button>
<span class="fill-remaining-space"></span>
<button mat-button (click)="navToImprint()">
<mat-icon>info</mat-icon>
{{ 'footer.imprint' | translate}}
<span *ngIf="deviceType === 'desktop'">
{{ 'footer.imprint' | translate}}
</span>
</button>
</mat-toolbar>
</footer>
......@@ -26,6 +26,7 @@ export class FooterComponent implements OnInit {
user: User;
open: string;
deviceType: string;
constructor(public notificationService: NotificationService,
public router: Router,
......@@ -38,6 +39,7 @@ export class FooterComponent implements OnInit {
}
ngOnInit() {
this.deviceType = localStorage.getItem('deviceType');
this.translateService.use(localStorage.getItem('currentLang'));
this.translateService.get('footer.open').subscribe(message => {
this.open = message;
......
......@@ -92,6 +92,7 @@
"dsgvo": "Datenschutz",
"imprint": "Impressum",
"will-open": " wird in einem neuen Fenster geöffnet...",
"open": "Öffnen"
"open": "Öffnen",
"blog": "Blog"
}
}
......@@ -92,6 +92,7 @@
"dsgvo": "Data Protection",
"imprint": "Imprint",
"will-open": " will be opened in a new tab...",
"open": "Open"
"open": "Open",
"blog": "Blog"
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment