Always show sync button for editors
This commit is contained in:
parent
3738b46ce9
commit
cb6b5895a8
@ -44,6 +44,10 @@ component AnimeActions(anime *arn.Anime, listItem *arn.AnimeListItem, user *arn.
|
||||
if user != nil
|
||||
.buttons.anime-actions
|
||||
if user.Role == "editor" || user.Role == "admin"
|
||||
button.mountable.action(data-action="syncEpisodes", data-trigger="click", data-anime-id=anime.ID, data-mountable-type="header")
|
||||
Icon("refresh")
|
||||
span Sync
|
||||
|
||||
a.button.mountable(href=anime.Link() + "/edit", data-mountable-type="header")
|
||||
Icon("pencil-square-o")
|
||||
span Edit anime
|
||||
|
@ -27,9 +27,3 @@ component AnimeEpisodes(anime *arn.Anime, episodes []*arn.Episode, episodeToFrie
|
||||
.episode-friends
|
||||
each friend in episodeToFriends[episode.Number] reversed
|
||||
AvatarNoLink(friend)
|
||||
|
||||
if user.Role == "editor" || user.Role == "admin"
|
||||
.episode-buttons.mountable
|
||||
button.action(data-action="syncEpisodes", data-trigger="click", data-anime-id=anime.ID)
|
||||
Icon("refresh")
|
||||
span Sync
|
||||
|
Loading…
Reference in New Issue
Block a user