mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 05:15:02 -02:30
move template survey files to Survey subdirectory
This commit is contained in:
@@ -12,6 +12,12 @@ function RoutedTabs(props) {
|
|||||||
if (match) {
|
if (match) {
|
||||||
return match.id;
|
return match.id;
|
||||||
}
|
}
|
||||||
|
const subpathMatch = tabsArray.find(tab =>
|
||||||
|
history.location.pathname.startsWith(tab.link)
|
||||||
|
);
|
||||||
|
if (subpathMatch) {
|
||||||
|
return subpathMatch.id;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
3
awx/ui_next/src/screens/Template/Survey/index.js
Normal file
3
awx/ui_next/src/screens/Template/Survey/index.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export { default as SurveyList } from './SurveyList';
|
||||||
|
export { default as SurveyQuestionAdd } from './SurveyQuestionAdd';
|
||||||
|
export { default as SurveyQuestionEdit } from './SurveyQuestionEdit';
|
||||||
@@ -7,9 +7,7 @@ import ContentError from '@components/ContentError';
|
|||||||
import AlertModal from '@components/AlertModal';
|
import AlertModal from '@components/AlertModal';
|
||||||
import ErrorDetail from '@components/ErrorDetail';
|
import ErrorDetail from '@components/ErrorDetail';
|
||||||
import useRequest, { useDismissableError } from '@util/useRequest';
|
import useRequest, { useDismissableError } from '@util/useRequest';
|
||||||
import SurveyList from './shared/SurveyList';
|
import { SurveyList, SurveyQuestionAdd, SurveyQuestionEdit } from './Survey';
|
||||||
import SurveyQuestionAdd from './shared/SurveyQuestionAdd';
|
|
||||||
import SurveyQuestionEdit from './shared/SurveyQuestionEdit';
|
|
||||||
|
|
||||||
function TemplateSurvey({ template, i18n }) {
|
function TemplateSurvey({ template, i18n }) {
|
||||||
const [surveyEnabled, setSurveyEnabled] = useState(template.survey_enabled);
|
const [surveyEnabled, setSurveyEnabled] = useState(template.survey_enabled);
|
||||||
|
|||||||
Reference in New Issue
Block a user