mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
close button modal lang
This commit is contained in:
parent
3f492d5436
commit
10e274802b
@ -23,13 +23,6 @@ export class LanguageService {
|
|||||||
return this.translate.getLangs();
|
return this.translate.getLangs();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* get a static list of langs
|
|
||||||
*/
|
|
||||||
public getAvailableLanguagesStatic(): string[] {
|
|
||||||
return this.translate.getLangs();
|
|
||||||
}
|
|
||||||
|
|
||||||
public configureAndInitTranslations(): void {
|
public configureAndInitTranslations(): void {
|
||||||
// always save in storage the currentLang used
|
// always save in storage the currentLang used
|
||||||
this.translate.onLangChange.subscribe((event: LangChangeEvent) => {
|
this.translate.onLangChange.subscribe((event: LangChangeEvent) => {
|
||||||
|
@ -37,11 +37,10 @@
|
|||||||
margin: 0.5em;
|
margin: 0.5em;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
padding: 0.5rem 1rem 0.5rem 0.25rem;
|
padding: 0.5rem;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $primary_color;
|
background: $bar-progress-grey;
|
||||||
color: $white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
@ -16,8 +16,9 @@ export class LanguageSelectorComponent implements OnInit {
|
|||||||
public availableLanguages: any = ['FR', 'EN', 'ES'];
|
public availableLanguages: any = ['FR', 'EN', 'ES'];
|
||||||
language: string;
|
language: string;
|
||||||
language_to_apply: string;
|
language_to_apply: string;
|
||||||
display_lang_dialog: boolean = true;
|
display_lang_dialog: boolean = false;
|
||||||
display_dynamic_langs: boolean = false;
|
display_dynamic_langs: boolean = false;
|
||||||
|
|
||||||
availableLanguagesStatic: any = [
|
availableLanguagesStatic: any = [
|
||||||
{ name: 'Arabic', value: 'ar' },
|
{ name: 'Arabic', value: 'ar' },
|
||||||
{ name: 'German', value: 'de' },
|
{ name: 'German', value: 'de' },
|
||||||
|
@ -32,6 +32,7 @@ $input-shadow: none;
|
|||||||
}
|
}
|
||||||
.p-dialog {
|
.p-dialog {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cancel-button-reject {
|
.cancel-button-reject {
|
||||||
@ -44,7 +45,7 @@ $input-shadow: none;
|
|||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
margin-top: 0.15rem;
|
margin-top: 0.2rem;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user