Toggling a button to be disabled/enabled in UI

Keywords´╝Ü javascript java reactjs spring-boot kubernetes


I am working on an application which is built on spring boot and react JS.Now they are planning to retire this application and asked me to disable few features in the UI part like disabling an option to create new plan(button in UI). Even they want me to do toggling without redeployment.In case the client want to re-enable the button to create new plans(if they want to continue with the application) .How is this possible to do. Some people suggested about config maps ption in kubernetes.But I am not clear with this option.