Always show sync button for editors

This commit is contained in:
Eduard Urbach 2020-11-07 09:47:09 +09:00
parent 3738b46ce9
commit cb6b5895a8
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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