Skip to content

Commit

Permalink
feat: display reply count and update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse committed Jun 20, 2024
1 parent f0288cb commit 3d5043e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ryan-haskell/date-format": "1.0.0",
"sporto/qs": "2.0.0",
"vjousse/elm-emoji": "2.0.1",
"vjousse/elm-mastodon-tooty": "2.1.0"
"vjousse/elm-mastodon-tooty": "4.0.0"
},
"indirect": {
"Janiczek/cmd-extra": "1.1.0",
Expand Down
8 changes: 7 additions & 1 deletion src/View/Status.elm
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ statusActionsView status currentUser showApp =
, onClickWithPreventAndStop <| DraftEvent (UpdateReplyTo sourceStatus)
, title "Reply"
]
[ Common.icon "share-alt" ]
[ Common.icon "share-alt"
, if sourceStatus.replies_count > 0 then
text <| String.fromInt sourceStatus.replies_count

else
text ""
]
, if sourceStatus.visibility == "private" then
span [ class <| reblogClasses ++ " disabled" ]
[ span [ title "Private" ] [ Common.icon "lock" ] ]
Expand Down

0 comments on commit 3d5043e

Please sign in to comment.