Преглед на файлове

Merge pull request #1570 from pixelfed/frontend-ui-refactor

Frontend ui refactor
daniel преди 6 години
родител
ревизия
d9638aee8f
променени са 3 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. BIN
      public/js/timeline.js
  2. BIN
      public/mix-manifest.json
  3. 2 2
      resources/assets/js/components/Timeline.vue

BIN
public/js/timeline.js


BIN
public/mix-manifest.json


+ 2 - 2
resources/assets/js/components/Timeline.vue

@@ -394,8 +394,8 @@
     body-class="list-group-flush p-0 rounded">
     <div class="list-group text-center">
       <div v-if="ctxMenuStatus && ctxMenuStatus.account.id != profile.id" class="list-group-item rounded cursor-pointer font-weight-bold text-danger" @click="ctxMenuReportPost()">Report inappropriate</div>
-      <div v-if="ctxMenuRelationship && ctxMenuRelationship.following" class="list-group-item rounded cursor-pointer font-weight-bold text-danger" @click="ctxMenuUnfollow()">Unfollow</div>
-      <div v-if="ctxMenuRelationship && !ctxMenuRelationship.following" class="list-group-item rounded cursor-pointer font-weight-bold text-primary" @click="ctxMenuFollow()">Follow</div>
+      <div v-if="ctxMenuStatus && ctxMenuStatus.account.id != profile.id && ctxMenuRelationship && ctxMenuRelationship.following" class="list-group-item rounded cursor-pointer font-weight-bold text-danger" @click="ctxMenuUnfollow()">Unfollow</div>
+      <div v-if="ctxMenuStatus && ctxMenuStatus.account.id != profile.id && ctxMenuRelationship && !ctxMenuRelationship.following" class="list-group-item rounded cursor-pointer font-weight-bold text-primary" @click="ctxMenuFollow()">Follow</div>
       <div class="list-group-item rounded cursor-pointer" @click="ctxMenuGoToPost()">Go to post</div>
       <!-- <div class="list-group-item rounded cursor-pointer" @click="ctxMenuEmbed()">Embed</div>
       <div class="list-group-item rounded cursor-pointer" @click="ctxMenuShare()">Share</div> -->