-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53333 from twilight2294/supportAgentblocker
[Internal QA]: Fix: Logged-In Agents Can Appear to Delete Workspaces in NewDot Without Actual Deletion or Error Message
- Loading branch information
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import useLocalize from '@hooks/useLocalize'; | ||
import ConfirmModal from './ConfirmModal'; | ||
|
||
type SupportalActionRestrictedModalProps = { | ||
isModalOpen: boolean; | ||
hideSupportalModal: () => void; | ||
}; | ||
|
||
function SupportalActionRestrictedModal({isModalOpen, hideSupportalModal}: SupportalActionRestrictedModalProps) { | ||
const {translate} = useLocalize(); | ||
return ( | ||
<ConfirmModal | ||
title={translate('supportalNoAccess.title')} | ||
isVisible={isModalOpen} | ||
onConfirm={hideSupportalModal} | ||
prompt={translate('supportalNoAccess.description')} | ||
confirmText={translate('common.buttonConfirm')} | ||
shouldShowCancelButton={false} | ||
/> | ||
); | ||
} | ||
|
||
SupportalActionRestrictedModal.displayName = 'SupportalActionRestrictedModal'; | ||
|
||
export default SupportalActionRestrictedModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters