mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update Post and Profile components
This commit is contained in:
parent
284c1ea2c9
commit
6c2bf54bde
2 changed files with 17 additions and 0 deletions
|
@ -490,6 +490,16 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
beforeMount() {
|
||||
let u = new URLSearchParams(window.location.search);
|
||||
if(u.has('ui') && u.get('ui') == 'moment' && this.profileLayout != 'moment') {
|
||||
this.profileLayout = 'moment';
|
||||
}
|
||||
if(u.has('ui') && u.get('ui') == 'metro' && this.profileLayout != 'metro') {
|
||||
this.profileLayout = 'metro';
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.fetchRelationships();
|
||||
},
|
||||
|
|
|
@ -546,6 +546,13 @@ export default {
|
|||
$('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>');
|
||||
}
|
||||
let u = new URLSearchParams(window.location.search);
|
||||
if(u.has('ui') && u.get('ui') == 'moment' && this.profileLayout != 'moment') {
|
||||
this.profileLayout = 'moment';
|
||||
}
|
||||
if(u.has('ui') && u.get('ui') == 'metro' && this.profileLayout != 'metro') {
|
||||
this.profileLayout = 'metro';
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
|
Loading…
Reference in a new issue