You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only show tree views for activated extensions #28325
This extension is only really useful for a few of the projects I work on daily, and so I was hoping that because it has a pretty limited set of activation events the section for Storybooks would only show in the cases of the activation. If I can't give it a provider, then there's not much that can be done with the UI.
Orta Therox (@orta) I am sorry I am finding difficulty to understand your requirement. Are you asking for conditional visibility of views? For eg., in your case, show the view when your extension is activated?
Yes, showing the view is nothing to do with the activation of extension because view is registered descriptively in package.json. Activation is needed only to get and show data in the view.
To show the view conditionally, we are introducing a new property called when where you can provide conditions when to display.
Activity
sandy081 commentedon Jun 9, 2017
Orta Therox (@orta) I am sorry I am finding difficulty to understand your requirement. Are you asking for conditional visibility of views? For eg., in your case, show the view when your extension is activated?
orta commentedon Jun 9, 2017
This is my activation events:
So the extension can only run if you manually trigger it, or if a specific file exists.
This repo does not have the file
node_modules/@storybook/react-native/package.json:So I don't think the "Storybook" tree view should be showing, as the extension has not been activated
sandy081 commentedon Jun 12, 2017
Yes, showing the view is nothing to do with the activation of extension because view is registered descriptively in package.json. Activation is needed only to get and show data in the view.
To show the view conditionally, we are introducing a new property called
whenwhere you can provide conditions when to display.Closing this as dup of #27823