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 !343
parents d5b727f5 86a7473a
1 merge request!343Only show labels in footer on desktop view
Pipeline #29076 passed with stages
in 8 minutes and 19 seconds
...@@ -2,21 +2,29 @@ ...@@ -2,21 +2,29 @@
<mat-toolbar id="footer-toolbar"> <mat-toolbar id="footer-toolbar">
<button mat-button *ngIf="router.url !== '/home'" (click)="navToBlog()"> <button mat-button *ngIf="router.url !== '/home'" (click)="navToBlog()">
<mat-icon>notes</mat-icon> <mat-icon>notes</mat-icon>
Blog <span *ngIf="deviceType === 'desktop'">
{{ 'footer.blog' | translate }}
</span>
</button> </button>
<button mat-button *ngIf="router.url === '/home'" (click)="navToDemoSession()"> <button mat-button *ngIf="router.url === '/home'" (click)="navToDemoSession()">
<mat-icon>input</mat-icon> <mat-icon>input</mat-icon>
{{ 'footer.demo' | translate}} <span *ngIf="deviceType === 'desktop'">
{{ 'footer.demo' | translate}}
</span>
</button> </button>
<span class="fill-remaining-space"></span> <span class="fill-remaining-space"></span>
<button mat-button (click)="navToDSGVO()"> <button mat-button (click)="navToDSGVO()">
<mat-icon>security</mat-icon> <mat-icon>security</mat-icon>
{{ 'footer.dsgvo' | translate}} <span *ngIf="deviceType === 'desktop'">
{{ 'footer.dsgvo' | translate}}
</span>
</button> </button>
<span class="fill-remaining-space"></span> <span class="fill-remaining-space"></span>
<button mat-button (click)="navToImprint()"> <button mat-button (click)="navToImprint()">
<mat-icon>info</mat-icon> <mat-icon>info</mat-icon>
{{ 'footer.imprint' | translate}} <span *ngIf="deviceType === 'desktop'">
{{ 'footer.imprint' | translate}}
</span>
</button> </button>
</mat-toolbar> </mat-toolbar>
</footer> </footer>
...@@ -26,6 +26,7 @@ export class FooterComponent implements OnInit { ...@@ -26,6 +26,7 @@ export class FooterComponent implements OnInit {
user: User; user: User;
open: string; open: string;
deviceType: string;
constructor(public notificationService: NotificationService, constructor(public notificationService: NotificationService,
public router: Router, public router: Router,
...@@ -38,6 +39,7 @@ export class FooterComponent implements OnInit { ...@@ -38,6 +39,7 @@ export class FooterComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.deviceType = localStorage.getItem('deviceType');
this.translateService.use(localStorage.getItem('currentLang')); this.translateService.use(localStorage.getItem('currentLang'));
this.translateService.get('footer.open').subscribe(message => { this.translateService.get('footer.open').subscribe(message => {
this.open = message; this.open = message;
......
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
"dsgvo": "Datenschutz", "dsgvo": "Datenschutz",
"imprint": "Impressum", "imprint": "Impressum",
"will-open": " wird in einem neuen Fenster geöffnet...", "will-open": " wird in einem neuen Fenster geöffnet...",
"open": "Öffnen" "open": "Öffnen",
"blog": "Blog"
} }
} }
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
"dsgvo": "Data Protection", "dsgvo": "Data Protection",
"imprint": "Imprint", "imprint": "Imprint",
"will-open": " will be opened in a new tab...", "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