From e92acce4eb6a452c8b1f7a6705ed0ecd08ec1860 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Fri, 6 Mar 2020 13:44:44 -0500 Subject: [PATCH] Adds toolbar --- .../screens/Template/shared/SurveyList.jsx | 45 ++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) 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`This action will delete the following:`)}
+ {selected.map(question => ( + + {question.question_name} +
+
+ ))} +
+ ); + } return ( <>