1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update Timeline.vue

This commit is contained in:
Daniel Supernault 2019-12-05 20:59:24 -07:00
parent 0c8fcff519
commit c956adf786
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -280,6 +280,10 @@
</div> </div>
</div> </div>
<div class="mb-4">
<a class="btn btn-light btn-block btn-sm font-weight-bold text-dark mb-3 border" href="/i/compose" data-toggle="modal" data-target="#composeModal"><i class="far fa-plus-square pr-3 fa-lg pt-1"></i> Compose Post</a>
</div>
<div v-if="showTips" class="mb-4 card-tips"> <div v-if="showTips" class="mb-4 card-tips">
<div class="card border shadow-none mb-3" style="max-width: 18rem;"> <div class="card border shadow-none mb-3" style="max-width: 18rem;">
<div class="card-body"> <div class="card-body">
@ -561,6 +565,7 @@
beforeMount() { beforeMount() {
this.fetchProfile(); this.fetchProfile();
this.fetchTimelineApi(); this.fetchTimelineApi();
}, },
mounted() { mounted() {
@ -591,7 +596,11 @@
} }
this.$nextTick(function () { this.$nextTick(function () {
$('[data-toggle="tooltip"]').tooltip() $('[data-toggle="tooltip"]').tooltip();
let u = new URLSearchParams(window.location.search);
if(u.has('a') && u.get('a') == 'co') {
$('#composeModal').modal('show');
}
}); });
}, },