Add marriage management features: Implement endpoints for spending time with, gifting to, and reconciling with spouses in the FalukantController. Update UserHouse model to include household tension attributes. Enhance frontend components to manage marriage actions and display household tension details, including localization updates in multiple languages.
This commit is contained in:
@@ -57,7 +57,6 @@
|
||||
<h2>{{ $t('home.nologin.login.submit') }}</h2>
|
||||
<p class="login-panel__hint">Mit bestehendem Konto direkt einloggen oder alternativ ohne Konto den Random-Chat testen.</p>
|
||||
<div class="quick-access-actions">
|
||||
<button type="button" class="primary-action" @click="doLogin">{{ $t('home.nologin.login.submit') }}</button>
|
||||
<button type="button" class="secondary-action" @click="openRegisterDialog">{{ $t('home.nologin.login.register') }}</button>
|
||||
<button type="button" class="secondary-action" @click="openRandomChat">{{ $t('home.nologin.startrandomchat') }}</button>
|
||||
</div>
|
||||
@@ -69,9 +68,12 @@
|
||||
:title="$t('home.nologin.login.passworddescription')" @keydown.enter="doLogin"
|
||||
ref="passwordInput">
|
||||
</div>
|
||||
<div class="login-submit-row">
|
||||
<button type="button" class="primary-action" @click="doLogin">{{ $t('home.nologin.login.submit') }}</button>
|
||||
</div>
|
||||
<div class="stay-logged-in-row">
|
||||
<label class="stay-logged-in-label">
|
||||
<input class="stay-logged-in-checkbox" type="checkbox">
|
||||
<input v-model="rememberMe" class="stay-logged-in-checkbox" type="checkbox">
|
||||
<span>{{ $t('home.nologin.login.stayLoggedIn') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
@@ -112,6 +114,7 @@ export default {
|
||||
return {
|
||||
username: '',
|
||||
password: '',
|
||||
rememberMe: true,
|
||||
};
|
||||
},
|
||||
components: {
|
||||
@@ -140,7 +143,7 @@ export default {
|
||||
async doLogin() {
|
||||
try {
|
||||
const response = await apiClient.post('/api/auth/login', { username: this.username, password: this.password });
|
||||
this.login(response.data);
|
||||
this.login({ user: response.data, rememberMe: this.rememberMe });
|
||||
} catch (error) {
|
||||
const errorKey = error?.response?.data?.error || 'network';
|
||||
this.$root.$refs.errorDialog.open(`tr:error.${errorKey}`);
|
||||
@@ -326,6 +329,11 @@ export default {
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.login-submit-row {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.primary-action,
|
||||
.secondary-action {
|
||||
align-self: flex-start;
|
||||
|
||||
Reference in New Issue
Block a user