Added the setLoadingState function on the interface

Added the setLoadingState to force all children of the
generic popup to have the setLoadingState function.

**Can be tested along with https://github.com/A24Group/Triage/pull/4526**

issue A24Group/Triage#3547