Fixed Calendar day view weird characters issue

+ Added TranslateModule to the NavigationModule so the translate pipe can work
+ Small tweaks
This commit is contained in:
Sercan Yemen 2018-03-08 12:25:27 +03:00
parent 535dbdfe57
commit 30825e7927
5 changed files with 20 additions and 7 deletions

View File

@ -3,6 +3,8 @@ import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { MatIconModule, MatRippleModule } from '@angular/material';
import { TranslateModule } from '@ngx-translate/core';
import { FuseNavigationComponent } from './navigation.component';
import { FuseNavVerticalItemComponent } from './vertical/nav-item/nav-vertical-item.component';
import { FuseNavVerticalCollapseComponent } from './vertical/nav-collapse/nav-vertical-collapse.component';
@ -17,6 +19,8 @@ import { FuseNavHorizontalCollapseComponent } from './horizontal/nav-collapse/na
MatIconModule,
MatRippleModule,
TranslateModule.forChild()
],
exports : [
FuseNavigationComponent

View File

@ -12,6 +12,7 @@ export class FuseTranslationLoaderService
{
constructor(private translate: TranslateService)
{
console.log('...FuseTranslationLoaderService constructor...');
}
public loadTranslations(...args: Locale[]): void

View File

@ -16,10 +16,10 @@ import { locale as navigationTurkish } from './navigation/i18n/tr';
export class AppComponent
{
constructor(
private translate: TranslateService,
private fuseNavigationService: FuseNavigationService,
private fuseSplashScreen: FuseSplashScreenService,
private translate: TranslateService,
private translationLoader: FuseTranslationLoaderService
private fuseTranslationLoader: FuseTranslationLoaderService
)
{
// Add languages
@ -28,10 +28,10 @@ export class AppComponent
// Set the default language
this.translate.setDefaultLang('en');
// Set the navigation translations
this.fuseTranslationLoader.loadTranslations(navigationEnglish, navigationTurkish);
// Use a language
this.translate.use('en');
// Set the navigation translations
this.translationLoader.loadTranslations(navigationEnglish, navigationTurkish);
}
}

View File

@ -180,6 +180,14 @@
}
}
}
.cal-hour-segment {
&:after,
&::after {
content: '' !important;
}
}
}
#calendar {

View File

@ -34,11 +34,11 @@ export class FuseMailComponent implements OnInit, OnDestroy
constructor(
private mailService: MailService,
private translationLoader: FuseTranslationLoaderService
private fuseTranslationLoader: FuseTranslationLoaderService
)
{
this.searchInput = new FormControl('');
this.translationLoader.loadTranslations(english, turkish);
this.fuseTranslationLoader.loadTranslations(english, turkish);
}
ngOnInit()