mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 01:36:43 +00:00
Update PostComponent, change timestamp format
This commit is contained in:
parent
37c1f34e9d
commit
e51665f6e3
1 changed files with 2 additions and 2 deletions
|
@ -245,7 +245,7 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="timestamp pt-2 d-flex align-items-bottom justify-content-between">
|
<div class="timestamp pt-2 d-flex align-items-bottom justify-content-between">
|
||||||
<a v-bind:href="statusUrl" class="small text-muted">
|
<a v-bind:href="statusUrl" class="small text-muted" :title="status.created_at">
|
||||||
{{timestampFormat()}}
|
{{timestampFormat()}}
|
||||||
</a>
|
</a>
|
||||||
<span class="small text-muted text-capitalize cursor-pointer" v-on:click="visibilityModal">{{status.visibility}}</span>
|
<span class="small text-muted text-capitalize cursor-pointer" v-on:click="visibilityModal">{{status.visibility}}</span>
|
||||||
|
@ -831,7 +831,7 @@ export default {
|
||||||
|
|
||||||
timestampFormat() {
|
timestampFormat() {
|
||||||
let ts = new Date(this.status.created_at);
|
let ts = new Date(this.status.created_at);
|
||||||
return ts.toDateString() + ' ' + ts.toLocaleTimeString();
|
return ts.toDateString();
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchData() {
|
fetchData() {
|
||||||
|
|
Loading…
Reference in a new issue