openSUSE/open-build-service

View on GitHub
src/api/app/components/watchlist_icon_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# This component inherits from WatchlistComponent as the functionality of the icon
# is the same as the links inside the watchlist component one.
class WatchlistIconComponent < WatchlistComponent
  def render?
    @object_to_be_watched.present?
  end
end