Skip to content

Commit

Permalink
Add an empty space pin post icon
Browse files Browse the repository at this point in the history
  • Loading branch information
developerfred committed Apr 25, 2020
1 parent 9567b53 commit 3d7e8c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/v2/js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ $(document).ready(function() {
_alert('Sucess unpin.', 'success', 1000);
}

if (state == 'pinned') {
else if (state == 'pinned') {

$(this).closest('.box').addClass('pinned-activity');

Expand Down
1 change: 1 addition & 0 deletions app/retail/templates/shared/activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
data-affirmative=pinned
data-negative=unpin data-state="{% if row.metadata.pin%}pinned{% else %}unpin{%endif%}"
data-pk="{{row.pk}}">

<i class="fas fa-map-pin mr-2"></i>Pin Post
</a>
{% endif %}
Expand Down

0 comments on commit 3d7e8c1

Please sign in to comment.