Correct the regression from the pull request #5
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

pull/5/head
Colin FRIZOT 1 year ago
parent 0466bdcfe8
commit 21b71ee473

@ -1,5 +1,5 @@
import {Component, ElementRef, HostListener, Input, OnInit, ViewChild} from '@angular/core'; import {Component, ElementRef, HostListener, Input, OnInit, ViewChild} from '@angular/core';
import { TranslationService } from '../../services/translation.service'; import {TranslationService} from '../../services/translation.service';
import {ThemeService} from "../../services/theme.service"; import {ThemeService} from "../../services/theme.service";
@Component({ @Component({
@ -7,31 +7,19 @@ import {ThemeService} from "../../services/theme.service";
templateUrl: './header.component.html', templateUrl: './header.component.html',
styleUrls: ['./header.component.scss'] styleUrls: ['./header.component.scss']
}) })
export class HeaderComponent implements OnInit { export class HeaderComponent {
title!: string; title: string = 'Sandkasten';
version!: string; version: string = '1.0';
sandkasten_logo!: string; sandkasten_logo: string = 'assets/img/logo.png';
gitea_logo!: string; isMenuOpen: boolean = false;
isMenuOpen!: boolean; isCheck: boolean = false;
isCheck!: boolean;
@ViewChild('menuRef') menuRef!: ElementRef; @ViewChild('menuRef') menuRef!: ElementRef;
@Input() themeClass!: string; @Input() themeClass!: string;
@Input() themeService!: ThemeService; @Input() themeService!: ThemeService;
ngOnInit(): void {
this.title = 'Sandkasten';
this.version = '1.0';
this.sandkasten_logo = 'assets/img/logo.png';
this.gitea_logo = 'assets/img/gitea.png';
this.isMenuOpen = false;
this.isCheck = false;
}
// Instanciation du service pour les actions de traduction // Instanciation du service pour les actions de traduction
constructor(private translationService: TranslationService) {} constructor(private translationService: TranslationService) {
}
// Méthode pour changer la langue // Méthode pour changer la langue
onLanguageChange(event: any) { onLanguageChange(event: any) {

Loading…
Cancel
Save