File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const App = () => {
4747 const [ loading , setLoading ] = useState ( true ) ;
4848 const [ isAuthenticated , setIsAuthenticated ] = useState ( false ) ;
4949 const impersonator = useAppStore ( state => state . impersonator ) ;
50+ const feedbackWidgetEnabled = useAppStore ( state => state . config . feedbackWidgetEnabled ) ;
5051 const navigate = useNavigate ( ) ;
5152 const currentLocation = useLocation ( ) ;
5253
@@ -125,7 +126,7 @@ const App = () => {
125126 < SharedMenu currentLocation = { currentLocation } />
126127 < div className = "pages" >
127128 < AuthorizedHeader setIsAuthenticated = { setIsAuthenticated } />
128- < UserFeedbackWidget />
129+ { feedbackWidgetEnabled && < UserFeedbackWidget /> }
129130 < Routes >
130131 < Route path = "/" element = { < Navigate replace to = "/home" /> } />
131132 < Route path = "/landing" element = { < Landing refreshUser = { refreshUser } /> } />
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public class Config {
3030 private List <Feature > features ;
3131 private List <String > acrValues ;
3232 private String minimalStepupAcrLevel ;
33+ private boolean feedbackWidgetEnabled ;
3334
3435 public Config (Config base ) {
3536 this .clientUrl = base .clientUrl ;
@@ -44,6 +45,7 @@ public Config(Config base) {
4445 this .features = base .features ;
4546 this .acrValues = base .acrValues ;
4647 this .minimalStepupAcrLevel = base .minimalStepupAcrLevel ;
48+ this .feedbackWidgetEnabled = base .feedbackWidgetEnabled ;
4749 }
4850
4951 public Config withAuthenticated (boolean authenticated ) {
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ config:
9898 invite : " https://invite.test2.surfconext.nl"
9999 sram : " https://test.sram.surf.nl/"
100100 service_desk : " https://servicedesk.surf.nl/jira/plugins/servlet/desk/user/requests?reporter=all"
101+ feedback_widget_enabled : true
101102 identity_providers :
102103 - name : " SXS IdP"
103104 entityid : " http://mock-idp"
You can’t perform that action at this time.
0 commit comments