close button modal lang

This commit is contained in:
Tykayn 2022-02-16 16:50:02 +01:00 committed by tykayn
parent 3f492d5436
commit 10e274802b
4 changed files with 6 additions and 12 deletions

View File

@ -23,13 +23,6 @@ export class LanguageService {
return this.translate.getLangs();
}
/**
* get a static list of langs
*/
public getAvailableLanguagesStatic(): string[] {
return this.translate.getLangs();
}
public configureAndInitTranslations(): void {
// always save in storage the currentLang used
this.translate.onLangChange.subscribe((event: LangChangeEvent) => {

View File

@ -37,11 +37,10 @@
margin: 0.5em;
border: 0;
border-radius: 2rem;
padding: 0.5rem 1rem 0.5rem 0.25rem;
padding: 0.5rem;
&:hover {
background: $primary_color;
color: $white;
background: $bar-progress-grey;
}
input {

View File

@ -16,8 +16,9 @@ export class LanguageSelectorComponent implements OnInit {
public availableLanguages: any = ['FR', 'EN', 'ES'];
language: string;
language_to_apply: string;
display_lang_dialog: boolean = true;
display_lang_dialog: boolean = false;
display_dynamic_langs: boolean = false;
availableLanguagesStatic: any = [
{ name: 'Arabic', value: 'ar' },
{ name: 'German', value: 'de' },

View File

@ -32,6 +32,7 @@ $input-shadow: none;
}
.p-dialog {
background: transparent !important;
box-shadow: none;
}
.cancel-button-reject {
@ -44,7 +45,7 @@ $input-shadow: none;
margin-left: 1rem;
height: 1rem;
width: 1rem;
margin-top: 0.15rem;
margin-top: 0.2rem;
float: right;
}
}