Actions
Feature #13079
closedAs a foreman developer I'd like my pagelets being displayed conditionally
Description
There's no possibility to display pagelets conditionally. Currently they can only be registered at the plugin load time and there's no option to hide them according to current context (eg. listing environments makes sense only for proxies with pulp node feature). It's problematic only for tab pagelets because they always render headings. Other pagelets can solve the problems by putting the condition in it's partial.
Updated by Tomáš Strachota almost 9 years ago
- Related to Tracker #12507: Smart Proxy UX improvments added
Updated by Tomáš Strachota almost 9 years ago
- Related to Feature #12716: As a foreman developer I'd like to have way of extending the data returned from smart proxy api. added
Updated by Lukas Zapletal almost 9 years ago
I don't understand, why don't you simply make the condition in the ERB fragment you are importing?
Updated by Tomáš Strachota almost 9 years ago
That doesn't help you with tabs. The tab gets rendered regardless it's empty or not.
Updated by The Foreman Bot almost 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3063 added
Updated by Ondřej Pražák almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 208d9743c75f2b869f6d051a2f4ad3497ad0b890.
Updated by Dominic Cleal almost 9 years ago
- Category set to Plugin integration
- Translation missing: en.field_release set to 71
Actions