diff --git a/awx/ui_next/src/screens/Template/shared/SurveyList.jsx b/awx/ui_next/src/screens/Template/shared/SurveyList.jsx index e04f99d288..e020876bfc 100644 --- a/awx/ui_next/src/screens/Template/shared/SurveyList.jsx +++ b/awx/ui_next/src/screens/Template/shared/SurveyList.jsx @@ -95,7 +95,50 @@ function SurveyList({ ); } - + if (isDeleteModalOpen) { + return ( + { + setIsDeleteModalOpen(false); + setSelected([]); + }} + actions={[ + + {i18n._(t`Delete`)} + , + { + setIsDeleteModalOpen(false); + setSelected([]); + }} + > + {i18n._(t`Cancel`)} + , + ]} + > + {i18n._(t`This action will delete the following:`)} + {selected.map(question => ( + + {question.question_name} + + + ))} + + ); + } return ( <>