small updates
This commit is contained in:
parent
f79c61c4e7
commit
59de80639f
4 changed files with 34 additions and 102 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="profile-tab">
|
<div class="profile-tab">
|
||||||
<div class="setting-item">
|
|
||||||
<UserCard
|
<UserCard
|
||||||
:user-id="user.id"
|
:user-id="user.id"
|
||||||
:editable="true"
|
:editable="true"
|
||||||
:switcher="false"
|
:switcher="false"
|
||||||
rounded="top"
|
rounded="top"
|
||||||
/>
|
>
|
||||||
<p>{{ $t('settings.name') }}</p>
|
<template v-if="role === 'admin' || role === 'moderator'">
|
||||||
<p v-if="role === 'admin' || role === 'moderator'">
|
<h4>{{ $t('settings.show_labels') }}</h4>
|
||||||
|
<p class="user-card-setting">
|
||||||
<Checkbox v-model="showRole">
|
<Checkbox v-model="showRole">
|
||||||
<template v-if="role === 'admin'">
|
<template v-if="role === 'admin'">
|
||||||
{{ $t('settings.show_admin_badge') }}
|
{{ $t('settings.show_admin_badge') }}
|
||||||
|
|
@ -18,7 +18,9 @@
|
||||||
</template>
|
</template>
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
</template>
|
||||||
|
<h4>{{ $t('settings.user_type') }}</h4>
|
||||||
|
<p class="user-card-setting">
|
||||||
<label>
|
<label>
|
||||||
{{ $t('settings.actor_type') }}
|
{{ $t('settings.actor_type') }}
|
||||||
<Select v-model="actorType">
|
<Select v-model="actorType">
|
||||||
|
|
@ -30,13 +32,15 @@
|
||||||
{{ $t('settings.actor_type_' + option) }}
|
{{ $t('settings.actor_type_' + option) }}
|
||||||
</option>
|
</option>
|
||||||
</Select>
|
</Select>
|
||||||
</label>
|
|
||||||
</p>
|
|
||||||
<div v-if="groupActorAvailable">
|
<div v-if="groupActorAvailable">
|
||||||
<small>
|
<small>
|
||||||
{{ $t('settings.actor_type_description') }}
|
{{ $t('settings.actor_type_description') }}
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
</UserCard>
|
||||||
|
<div class="setting-item">
|
||||||
<p>
|
<p>
|
||||||
<interface-language-switcher
|
<interface-language-switcher
|
||||||
:prompt-text="$t('settings.email_language')"
|
:prompt-text="$t('settings.email_language')"
|
||||||
|
|
@ -52,87 +56,6 @@
|
||||||
{{ $t('settings.save') }}
|
{{ $t('settings.save') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-item">
|
|
||||||
<h2>{{ $t('settings.avatar') }}</h2>
|
|
||||||
<p class="visibility-notice">
|
|
||||||
{{ $t('settings.avatar_size_instruction') }}
|
|
||||||
</p>
|
|
||||||
<div class="current-avatar-container">
|
|
||||||
<img
|
|
||||||
:src="user.profile_image_url_original"
|
|
||||||
class="current-avatar"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
v-if="!isDefaultAvatar && pickAvatarBtnVisible"
|
|
||||||
:title="$t('settings.reset_avatar')"
|
|
||||||
class="button-unstyled reset-button"
|
|
||||||
@click="resetAvatar"
|
|
||||||
>
|
|
||||||
<FAIcon
|
|
||||||
icon="times"
|
|
||||||
type="button"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p>{{ $t('settings.set_new_avatar') }}</p>
|
|
||||||
<button
|
|
||||||
v-show="pickAvatarBtnVisible"
|
|
||||||
id="pick-avatar"
|
|
||||||
class="button-default btn"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
{{ $t('settings.upload_a_photo') }}
|
|
||||||
</button>
|
|
||||||
<image-cropper
|
|
||||||
trigger="#pick-avatar"
|
|
||||||
:submit-handler="submitAvatar"
|
|
||||||
@open="pickAvatarBtnVisible=false"
|
|
||||||
@close="pickAvatarBtnVisible=true"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="setting-item">
|
|
||||||
<h2>{{ $t('settings.profile_banner') }}</h2>
|
|
||||||
<div class="banner-background-preview">
|
|
||||||
<img :src="user.cover_photo">
|
|
||||||
<button
|
|
||||||
v-if="!isDefaultBanner"
|
|
||||||
class="button-unstyled reset-button"
|
|
||||||
:title="$t('settings.reset_profile_banner')"
|
|
||||||
@click="resetBanner"
|
|
||||||
>
|
|
||||||
<FAIcon
|
|
||||||
icon="times"
|
|
||||||
type="button"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<p>{{ $t('settings.set_new_profile_banner') }}</p>
|
|
||||||
<img
|
|
||||||
v-if="bannerPreview"
|
|
||||||
class="banner-background-preview"
|
|
||||||
:src="bannerPreview"
|
|
||||||
>
|
|
||||||
<div>
|
|
||||||
<input
|
|
||||||
type="file"
|
|
||||||
class="input"
|
|
||||||
@change="uploadFile('banner', $event)"
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<FAIcon
|
|
||||||
v-if="bannerUploading"
|
|
||||||
class="uploading"
|
|
||||||
spin
|
|
||||||
icon="circle-notch"
|
|
||||||
/>
|
|
||||||
<button
|
|
||||||
v-else-if="bannerPreview"
|
|
||||||
class="btn button-default"
|
|
||||||
@click="submitBanner(banner)"
|
|
||||||
>
|
|
||||||
{{ $t('settings.save') }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<h2>{{ $t('settings.profile_background') }}</h2>
|
<h2>{{ $t('settings.profile_background') }}</h2>
|
||||||
<div class="banner-background-preview">
|
<div class="banner-background-preview">
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-setting,
|
||||||
&-bio {
|
&-bio {
|
||||||
text-align: center;
|
|
||||||
color: var(--lightText);
|
color: var(--lightText);
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
|
|
@ -38,6 +38,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-card-bio {
|
.user-card-bio {
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
&.input {
|
||||||
|
margin: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
&, * {
|
&, * {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -592,21 +592,22 @@
|
||||||
v-else-if="editable"
|
v-else-if="editable"
|
||||||
class="birthday"
|
class="birthday"
|
||||||
>
|
>
|
||||||
|
<div>
|
||||||
|
<Checkbox v-model="showBirthday">
|
||||||
|
{{ $t('settings.birthday.show_birthday') }}
|
||||||
|
</Checkbox>
|
||||||
|
</div>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
class="fa-old-padding"
|
class="fa-old-padding"
|
||||||
icon="birthday-cake"
|
icon="birthday-cake"
|
||||||
/>
|
/>
|
||||||
|
{{ $t('settings.birthday.label') }}
|
||||||
<input
|
<input
|
||||||
id="birthday"
|
id="birthday"
|
||||||
v-model="newBirthday"
|
v-model="newBirthday"
|
||||||
type="date"
|
type="date"
|
||||||
class="input birthday-input"
|
class="input birthday-input"
|
||||||
>
|
>
|
||||||
<div>
|
|
||||||
<Checkbox v-model="showBirthday">
|
|
||||||
{{ $t('settings.birthday.show_birthday') }}
|
|
||||||
</Checkbox>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -492,6 +492,8 @@
|
||||||
"avatarRadius": "Avatars",
|
"avatarRadius": "Avatars",
|
||||||
"background": "Background",
|
"background": "Background",
|
||||||
"bio": "Bio",
|
"bio": "Bio",
|
||||||
|
"user_type": "User type",
|
||||||
|
"show_labels": "User labels",
|
||||||
"email_language": "Language for receiving emails from the server",
|
"email_language": "Language for receiving emails from the server",
|
||||||
"block_export": "Block export",
|
"block_export": "Block export",
|
||||||
"block_export_button": "Export your blocks to a csv file",
|
"block_export_button": "Export your blocks to a csv file",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue