HUE-2131 [core] Modularize the sharing permission modal
Merge remote-tracking branch 'remotes/origin/HUE-2131' into HUE-2131