Skip to content
Snippets Groups Projects
Commit f706234d authored by HJ's avatar HJ :fire:
Browse files

fix being unable to set/reset background (and possibly avatar/banner)

parent 805615d5
No related branches found
No related tags found
2 merge requests!1711Update stable - 2.5.0 release,!1385Migration to Vue 3 (again)
Pipeline #39500 passed
......@@ -68,8 +68,9 @@
class="delete-field button-unstyled -hover-highlight"
@click="deleteField(i)"
>
<!-- TODO something is wrong with v-show here -->
<FAIcon
v-show="newFields.length > 1"
v-if="newFields.length > 1"
icon="times"
/>
</button>
......@@ -106,14 +107,17 @@
:src="user.profile_image_url_original"
class="current-avatar"
>
<FAIcon
<button
v-if="!isDefaultAvatar && pickAvatarBtnVisible"
:title="$t('settings.reset_avatar')"
class="reset-button"
icon="times"
type="button"
@click="resetAvatar"
/>
>
<FAIcon
class="reset-button"
icon="times"
type="button"
/>
</button>
</div>
<p>{{ $t('settings.set_new_avatar') }}</p>
<button
......@@ -135,14 +139,17 @@
<h2>{{ $t('settings.profile_banner') }}</h2>
<div class="banner-background-preview">
<img :src="user.cover_photo">
<FAIcon
<button
v-if="!isDefaultBanner"
:title="$t('settings.reset_profile_banner')"
class="reset-button"
icon="times"
type="button"
@click="resetBanner"
/>
>
<FAIcon
class="reset-button"
icon="times"
type="button"
/>
</button>
</div>
<p>{{ $t('settings.set_new_profile_banner') }}</p>
<img
......@@ -174,14 +181,18 @@
<h2>{{ $t('settings.profile_background') }}</h2>
<div class="banner-background-preview">
<img :src="user.background_image">
<FAIcon
<button
v-if="!isDefaultBackground"
:title="$t('settings.reset_profile_background')"
class="reset-button"
icon="times"
type="button"
class="button-unstyled"
@click="resetBackground"
/>
:title="$t('settings.reset_profile_background')"
>
<FAIcon
class="reset-button"
icon="times"
type="button"
/>
</button>
</div>
<p>{{ $t('settings.set_new_profile_background') }}</p>
<img
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment