From eb6e96b9a01589e8eeab2f92a6845c19ad966f77 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 13 May 2019 00:09:30 -0600 Subject: [PATCH] Update Profile.vue --- resources/assets/js/components/Profile.vue | 7 ++++++- resources/views/profile/show.blade.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 3c4bcc20..1f397f66 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -511,8 +511,9 @@ export default { props: [ 'profile-id', + 'profile-layout', 'profile-settings', - 'profile-layout' + 'profile-username' ], data() { return { @@ -541,6 +542,10 @@ export default { beforeMount() { this.fetchRelationships(); this.fetchProfile(); + if(window.outerWidth < 576 && window.history.length > 2) { + $('nav.navbar').hide(); + $('body').prepend('
' + this.profileUsername + '
'); + } }, mounted() { diff --git a/resources/views/profile/show.blade.php b/resources/views/profile/show.blade.php index 5190a1ff..ae29ff99 100644 --- a/resources/views/profile/show.blade.php +++ b/resources/views/profile/show.blade.php @@ -7,7 +7,7 @@ @endif - + @if($profile->website) {{$profile->website}} @endif