mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-30 02:03:16 +00:00
Merge pull request #975 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
8a2e731e56
5 changed files with 5 additions and 4 deletions
BIN
public/js/components.js
vendored
BIN
public/js/components.js
vendored
Binary file not shown.
BIN
public/js/status.js
vendored
BIN
public/js/status.js
vendored
Binary file not shown.
Binary file not shown.
|
@ -24,7 +24,7 @@
|
|||
</span>
|
||||
<span class="pl-2" style="min-width:38px">
|
||||
<span v-on:click="likeStatus(reply, $event)"><i v-bind:class="[reply.favourited ? 'fas fa-heart fa-sm text-danger':'far fa-heart fa-sm text-lighter']"></i></span>
|
||||
<post-menu :status="reply" :profile="user" :size="'sm'" :modal="'true'" class="d-inline-block pl-2"></post-menu>
|
||||
<post-menu :status="reply" :profile="user" :size="'sm'" :modal="'true'" class="d-inline-block pl-2" v-on:deletePost="deleteComment(reply.id, index)"></post-menu>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<a class="list-group-item font-weight-bold" v-on:click="blockProfile(status)" href="#">Block Profile</a>
|
||||
</span>
|
||||
<span v-if="statusOwner(status) == true || profile.is_admin == true">
|
||||
<a class="list-group-item font-weight-bold text-danger" v-on:click="deletePost(status)">Delete</a>
|
||||
<a class="list-group-item font-weight-bold text-danger" v-on:click="deletePost">Delete</a>
|
||||
</span>
|
||||
<span v-if="profile.is_admin == true">
|
||||
<a class="list-group-item font-weight-bold" v-on:click="moderatePost(status, 'autocw')" href="#">
|
||||
|
@ -152,8 +152,9 @@
|
|||
}
|
||||
},
|
||||
|
||||
|
||||
deletePost(status, index) {
|
||||
deletePost() {
|
||||
this.$emit('deletePost');
|
||||
$('#mt_pid_'+this.status.id).modal('hide');
|
||||
},
|
||||
|
||||
moderatePost(status, action, $event) {
|
||||
|
|
Loading…
Reference in a new issue