mirror of https://github.com/pixelfed/pixelfed.git
Update Profile.vue
This commit is contained in:
parent
4baec9c7b5
commit
eb6e96b9a0
|
@ -511,8 +511,9 @@
|
||||||
export default {
|
export default {
|
||||||
props: [
|
props: [
|
||||||
'profile-id',
|
'profile-id',
|
||||||
|
'profile-layout',
|
||||||
'profile-settings',
|
'profile-settings',
|
||||||
'profile-layout'
|
'profile-username'
|
||||||
],
|
],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -541,6 +542,10 @@ export default {
|
||||||
beforeMount() {
|
beforeMount() {
|
||||||
this.fetchRelationships();
|
this.fetchRelationships();
|
||||||
this.fetchProfile();
|
this.fetchProfile();
|
||||||
|
if(window.outerWidth < 576 && window.history.length > 2) {
|
||||||
|
$('nav.navbar').hide();
|
||||||
|
$('body').prepend('<div class="bg-white p-3 border-bottom"><div class="d-flex justify-content-between align-items-center"><div onclick="window.history.back();"><i class="fas fa-chevron-left fa-lg"></i></div><div class="font-weight-bold">' + this.profileUsername + '</div><div><i class="fas fa-chevron-right text-white fa-lg"></i></div></div></div>');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<profile profile-id="{{$profile->id}}" :profile-settings="{{json_encode($settings)}}" profile-layout="{{$profile->profile_layout ?? 'metro'}}"></profile>
|
<profile profile-id="{{$profile->id}}" profile-username="{{$profile->username}}" :profile-settings="{{json_encode($settings)}}" profile-layout="{{$profile->profile_layout ?? 'metro'}}"></profile>
|
||||||
@if($profile->website)
|
@if($profile->website)
|
||||||
<a class="d-none" href="{{$profile->website}}" rel="me">{{$profile->website}}</a>
|
<a class="d-none" href="{{$profile->website}}" rel="me">{{$profile->website}}</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
Loading…
Reference in New Issue