Added more info to profile page.
This commit is contained in:
parent
eb02563714
commit
9a8df73e7c
|
@ -58,6 +58,8 @@ export default {
|
||||||
},
|
},
|
||||||
userSettingsPage: {
|
userSettingsPage: {
|
||||||
title: 'Account Settings',
|
title: 'Account Settings',
|
||||||
|
email: 'Email',
|
||||||
|
name: 'Name',
|
||||||
password: 'Password',
|
password: 'Password',
|
||||||
passwordHint: 'Set a new password for your account.',
|
passwordHint: 'Set a new password for your account.',
|
||||||
updatePassword: 'Update Password',
|
updatePassword: 'Update Password',
|
||||||
|
|
|
@ -53,6 +53,8 @@ export default {
|
||||||
},
|
},
|
||||||
userSettingsPage: {
|
userSettingsPage: {
|
||||||
title: 'Account instellingen',
|
title: 'Account instellingen',
|
||||||
|
email: 'E-mail',
|
||||||
|
name: 'Naam',
|
||||||
password: 'Wachtwoord',
|
password: 'Wachtwoord',
|
||||||
passwordHint: 'Stel een nieuw wachtwoord voor je account in.',
|
passwordHint: 'Stel een nieuw wachtwoord voor je account in.',
|
||||||
updatePassword: 'Wachtwoord bijwerken',
|
updatePassword: 'Wachtwoord bijwerken',
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
<StandardCenteredPage v-if="user">
|
<StandardCenteredPage v-if="user">
|
||||||
<h3>{{ user?.name }}</h3>
|
<h3>{{ user?.name }}</h3>
|
||||||
|
|
||||||
<p>{{ user?.email }}</p>
|
|
||||||
<p v-if="isOwnUser">This is your account!</p>
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div v-if="userPrivate">
|
<div v-if="userPrivate">
|
||||||
|
|
|
@ -3,24 +3,37 @@ The page where users can edit their personal information and preferences.
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<q-page>
|
<q-page>
|
||||||
<StandardCenteredPage>
|
<StandardCenteredPage v-if="authStore.loggedIn">
|
||||||
<h3>{{ $t('userSettingsPage.title') }}</h3>
|
<h3>{{ $t('userSettingsPage.title') }}</h3>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
<div class="row justify-between">
|
||||||
|
<span class="property-label">{{ $t('userSettingsPage.email') }}</span>
|
||||||
|
<q-input type="email" v-model="authStore.user.email" dense readonly/>
|
||||||
|
</div>
|
||||||
|
<div class="row justify-between">
|
||||||
|
<span class="property-label">{{ $t('userSettingsPage.name') }}</span>
|
||||||
|
<q-input type="text" v-model="authStore.user.name" dense readonly/>
|
||||||
|
</div>
|
||||||
<div class="row justify-between">
|
<div class="row justify-between">
|
||||||
<span class="property-label">{{ $t('userSettingsPage.password') }}</span>
|
<span class="property-label">{{ $t('userSettingsPage.password') }}</span>
|
||||||
<q-input
|
<q-input
|
||||||
|
dense
|
||||||
type="password"
|
type="password"
|
||||||
v-model="newPassword"
|
v-model="newPassword"
|
||||||
:hint="$t('userSettingsPage.passwordHint')"
|
:hint="$t('userSettingsPage.passwordHint')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="canUpdatePassword">
|
<div>
|
||||||
<q-btn :label="$t('userSettingsPage.updatePassword')" color="positive" @click="updatePassword"/>
|
<q-btn v-if="canUpdatePassword" :label="$t('userSettingsPage.updatePassword')" color="positive" @click="updatePassword"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="personalDetails">
|
<div v-if="personalDetails">
|
||||||
<h4>{{ $t('userSettingsPage.personalDetails.title') }}</h4>
|
<h4>{{ $t('userSettingsPage.personalDetails.title') }}</h4>
|
||||||
|
<div v-if="personalDetailsChanged" class="save-button-row">
|
||||||
|
<q-btn :label="$t('userSettingsPage.save')" color="positive" @click="savePersonalDetails"/>
|
||||||
|
<q-btn :label="$t('userSettingsPage.undo')" color="secondary" @click="undoPersonalDetailsChanges"/>
|
||||||
|
</div>
|
||||||
<EditablePropertyRow
|
<EditablePropertyRow
|
||||||
v-model="personalDetails.birthDate"
|
v-model="personalDetails.birthDate"
|
||||||
:label="$t('userSettingsPage.personalDetails.birthDate')"
|
:label="$t('userSettingsPage.personalDetails.birthDate')"
|
||||||
|
@ -52,16 +65,14 @@ The page where users can edit their personal information and preferences.
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div v-if="personalDetailsChanged" class="save-button-row">
|
|
||||||
<q-btn :label="$t('userSettingsPage.save')" color="positive" @click="savePersonalDetails"/>
|
|
||||||
<q-btn :label="$t('userSettingsPage.undo')" color="secondary" @click="undoPersonalDetailsChanges"/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="preferences">
|
<div v-if="preferences">
|
||||||
<h4>{{ $t('userSettingsPage.preferences.title') }}</h4>
|
<h4>{{ $t('userSettingsPage.preferences.title') }}</h4>
|
||||||
|
<div v-if="preferencesChanged" class="save-button-row">
|
||||||
|
<q-btn :label="$t('userSettingsPage.save')" color="positive" @click="savePreferences"/>
|
||||||
|
<q-btn :label="$t('userSettingsPage.undo')" color="secondary" @click="undoPreferencesChanges"/>
|
||||||
|
</div>
|
||||||
<EditablePropertyRow
|
<EditablePropertyRow
|
||||||
v-model="preferences.accountPrivate"
|
v-model="preferences.accountPrivate"
|
||||||
:label="$t('userSettingsPage.preferences.accountPrivate')"
|
:label="$t('userSettingsPage.preferences.accountPrivate')"
|
||||||
|
@ -73,11 +84,6 @@ The page where users can edit their personal information and preferences.
|
||||||
:select-options="supportedLocales"
|
:select-options="supportedLocales"
|
||||||
@update:modelValue="updateLocale"
|
@update:modelValue="updateLocale"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div v-if="preferencesChanged" class="save-button-row">
|
|
||||||
<q-btn :label="$t('userSettingsPage.save')" color="positive" @click="savePreferences"/>
|
|
||||||
<q-btn :label="$t('userSettingsPage.undo')" color="secondary" @click="undoPreferencesChanges"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</StandardCenteredPage>
|
</StandardCenteredPage>
|
||||||
|
|
Loading…
Reference in New Issue