X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-user-settings%2Fuser-interface-settings.component.ts;h=80b88c12978079cdc9f6ceccd8a3a01acca0c84f;hb=a800dbf345e856ab790e7b3ab9a97e8c5dfa0a32;hp=875ffa3f1b20540918f7b8f9647487fd3285614f;hpb=67ed6552b831df66713bac9e672738796128d33f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts b/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts index 875ffa3f1..80b88c129 100644 --- a/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts +++ b/client/src/app/shared/shared-user-settings/user-interface-settings.component.ts @@ -2,7 +2,6 @@ import { Subject, Subscription } from 'rxjs' import { Component, Input, OnDestroy, OnInit } from '@angular/core' import { AuthService, Notifier, ServerService, UserService } from '@app/core' import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' -import { I18n } from '@ngx-translate/i18n-polyfill' import { ServerConfig, User, UserUpdateMe } from '@shared/models' @Component({ @@ -25,8 +24,7 @@ export class UserInterfaceSettingsComponent extends FormReactive implements OnIn private authService: AuthService, private notifier: Notifier, private userService: UserService, - private serverService: ServerService, - private i18n: I18n + private serverService: ServerService ) { super() } @@ -73,14 +71,14 @@ export class UserInterfaceSettingsComponent extends FormReactive implements OnIn () => { this.authService.refreshUserInformation() - if (this.notifyOnUpdate) this.notifier.success(this.i18n('Interface settings updated.')) + if (this.notifyOnUpdate) this.notifier.success($localize`Interface settings updated.`) }, err => this.notifier.error(err.message) ) } else { this.userService.updateMyAnonymousProfile(details) - if (this.notifyOnUpdate) this.notifier.success(this.i18n('Interface settings updated.')) + if (this.notifyOnUpdate) this.notifier.success($localize`Interface settings updated.`) } } }