jen_at_haverstack Posted April 13, 2020 Report Share Posted April 13, 2020 Say I have an Ftrack widget hosted at https://myftrackwidget.com. I can set this URL for a dashboard widget and also for an action widget. Is there some API that could help a widget distinguish whether it is being displayed inside of a dashboard or an action? Link to comment Share on other sites More sharing options...
jen_at_haverstack Posted October 13, 2020 Author Report Share Posted October 13, 2020 Currently solving this by just passing a URL parameter to the widget so that it knows what environment it's in. So widgets in an action will be specified as https://myftrackwidget.com/?env=action, for example. Still, it would be cool to get that info from Ftrack itself by having it pass data to the widget somehow. Link to comment Share on other sites More sharing options...
Simon Stålner Posted October 14, 2020 Report Share Posted October 14, 2020 Hi Jen, Sorry for the late reply. Great that you found a way to solve it. I will bring this up with our developers as well. Regards Simon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now