poprawki
This commit is contained in:
@@ -76,9 +76,7 @@ import { UiService } from '../../core/services/ui.service';
|
||||
</form>
|
||||
|
||||
<div class="login-footer-note">
|
||||
{{ mode() === 'login'
|
||||
? (ui.language() === 'pl' ? 'Użyj swojego konta, aby zarządzać wydatkami, raportami i uprawnieniami.' : 'Use your account to manage expenses, reports and user permissions.')
|
||||
: (ui.language() === 'pl' ? 'Po utworzeniu konta od razu wrócisz do logowania.' : 'After creating an account you will be taken back to sign in.') }}
|
||||
{{ mode() === 'login' ? ui.t('login.footer') : ui.t('register.footer') }}
|
||||
</div>
|
||||
|
||||
@if (appSettings.registrationEnabled()) {
|
||||
@@ -133,7 +131,7 @@ export class LoginComponent {
|
||||
this.router.navigate(['/']);
|
||||
},
|
||||
error: (error) => {
|
||||
const message = error.error?.message ?? 'Nie udało się zalogować.';
|
||||
const message = error.error?.message ?? this.ui.t('login.error');
|
||||
this.loading.set(false);
|
||||
this.errorMessage.set(message);
|
||||
this.toast.error(message);
|
||||
@@ -146,11 +144,11 @@ export class LoginComponent {
|
||||
next: () => {
|
||||
this.loading.set(false);
|
||||
this.errorMessage.set(null);
|
||||
this.toast.success('Konto zostało utworzone.');
|
||||
this.toast.success(this.ui.t('register.success'));
|
||||
this.mode.set('login');
|
||||
},
|
||||
error: (error) => {
|
||||
const message = error.error?.message ?? 'Nie udało się utworzyć konta.';
|
||||
const message = error.error?.message ?? this.ui.t('register.error');
|
||||
this.loading.set(false);
|
||||
this.errorMessage.set(message);
|
||||
this.toast.error(message);
|
||||
@@ -168,22 +166,18 @@ export class LoginComponent {
|
||||
}
|
||||
|
||||
loginSubtitle() {
|
||||
return this.ui.language() === 'pl'
|
||||
? 'Zaloguj się, aby zarządzać wydatkami, kontrahentami i raportami.'
|
||||
: 'Sign in to manage expenses, merchants and reports.';
|
||||
return this.ui.t('login.subtitle');
|
||||
}
|
||||
|
||||
registerSubtitle() {
|
||||
return this.ui.language() === 'pl'
|
||||
? 'Utwórz konto i zacznij zbierać potwierdzenia oraz statystyki.'
|
||||
: 'Create an account and start collecting proofs and analytics.';
|
||||
return this.ui.t('register.subtitle');
|
||||
}
|
||||
|
||||
switchToRegisterLabel() {
|
||||
return this.ui.language() === 'pl' ? 'Nie masz konta?' : 'Need an account?';
|
||||
return this.ui.t('login.needAccount');
|
||||
}
|
||||
|
||||
switchToLoginLabel() {
|
||||
return this.ui.language() === 'pl' ? 'Masz już konto?' : 'Already registered?';
|
||||
return this.ui.t('login.haveAccount');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user