#449 Allow a widget to specify what hub types it can display on
Closed: Fixed 6 years ago Opened 6 years ago by ryanlerch.

Would it be a good idea if a widget could specify what types of hubs (user / group) that is can be added to? SImilar to the position variable at the top of widgets.

This would be useful to stop widgets like the contact widget being added to a team hub, where the community rules widget does the same thing.


Hmm I thought about this too, yeah. Do you anticipate other cases where widgets are specific to hub types?

Metadata Update from @abompard:
- Issue priority set to: High

6 years ago

@abompard not really sure about any future cases TBH.

IIRC, there are a few widgets that do different things depending on if it is a user hub or a group hub. Maybe that approach might work in the case of community rules / contact. Not really sure what the best approach is here though.

the hubs widget (https://pagure.io/fedora-hubs/issue/436) is another one what really should only be available on a user hub

Metadata Update from @ryanlerch:
- Issue assigned to ryanlerch

6 years ago

Metadata Update from @ryanlerch:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata