[ADF-2645] move the service use in the upload in the right place (#3189)

[ADF-2645] move the service use in the upload in the right place 
[ADF-2687] No message is displayed when deleting a file/folder from content action
[ADF-2714] [demo shell] Not able to download a version of a file

* add spaces tslint fix
This commit is contained in:
Eugenio Romano
2018-04-14 10:39:24 +01:00
committed by GitHub
parent 66d8935624
commit 6cd0e9f5bb
23 changed files with 122 additions and 282 deletions

View File

@@ -43,7 +43,7 @@ export class TranslationService {
customLoader: TranslateLoaderService;
constructor(public translate: TranslateService,
private userPreference: UserPreferencesService,
userPreference: UserPreferencesService,
@Optional() @Inject(TRANSLATION_PROVIDER) providers: TranslationProvider[]) {
this.customLoader = <TranslateLoaderService> this.translate.currentLoader;
@@ -56,7 +56,7 @@ export class TranslationService {
}
}
this.userPreference.locale$.subscribe( (locale) => {
userPreference.locale$.subscribe( (locale) => {
this.userLang = locale;
this.use(this.userLang);
});
@@ -90,7 +90,7 @@ export class TranslationService {
}
}
private onTranslationChanged(lang: string): void {
onTranslationChanged(lang: string): void {
this.translate.onTranslationChange.next({
lang: lang,
translations: this.customLoader.getFullTranslationJSON(lang)