For a component that supports context, when a new context condition is added, the properties do not display for the condition when a model has not been selected for the component.
Steps to Reproduce:
Scenario 1:
1) Create new blank page
2) Add page title
3) Add button to page title that shows popup
4) Add page title to popup
5) Add condition to page title on popup
6) Click the condition that was created
Expected Behavior
Since there is no model even available, possibly hide the “Context” category completely. Short of that, don’t allow a condition to be added. Worst case, display a message in the properties window indicating that you must select a model to configure the condition. One scenario here is that you have a model on a component and set a bunch of conditions but then either remove the model or set the model to ‘None’ (if it’s applicable for that component). In this case, hiding the category completely likely makes the most sense I would think.
Actual Behavior
No properties are displayed
Scenario 2:
1) Create a new account detail page
2) Add button to page title that shows popup
3) Add page title to popup
4) Add condition to page title popup
6) Click the condition that was created
Expected Behavior
See Above
Actual Behavior
No properties are displayed
Note -
1) if you explicitly change/set the model or save the page, the context condition properties are displayed. In the case of scenario 2, even though the model is required and there is a model, the state.attr(‘model’) does not yet have a value (until you explicitly set or save page)
2) The reason no context properties are displayed in because in “function t(a)” of skuidBuilder.js, propsFunction looks for a model and if it doesn’t find one, returns false.
Question
Context condition properties not displayed
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
