feat: Warning on invite modal when mail setup is incomplete (#11809)
This commit is contained in:
parent
03548cdfbc
commit
4e3d732934
22 changed files with 42 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ const MembersPage = () => {
|
|||
}
|
||||
const { locale } = useContext(I18n)
|
||||
|
||||
const { userProfile, currentWorkspace, isCurrentWorkspaceOwner, isCurrentWorkspaceManager } = useAppContext()
|
||||
const { userProfile, currentWorkspace, isCurrentWorkspaceOwner, isCurrentWorkspaceManager, systemFeatures } = useAppContext()
|
||||
const { data, mutate } = useSWR({ url: '/workspaces/current/members' }, fetchMembers)
|
||||
const [inviteModalVisible, setInviteModalVisible] = useState(false)
|
||||
const [invitationResults, setInvitationResults] = useState<InvitationResult[]>([])
|
||||
|
|
@ -122,6 +122,7 @@ const MembersPage = () => {
|
|||
{
|
||||
inviteModalVisible && (
|
||||
<InviteModal
|
||||
isEmailSetup={systemFeatures.is_email_setup}
|
||||
onCancel={() => setInviteModalVisible(false)}
|
||||
onSend={(invitationResults) => {
|
||||
setInvitedModalVisible(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue