diff --git a/src/components/routes/admin/service_detail/updater.tsx b/src/components/routes/admin/service_detail/updater.tsx index e881796a4..2f9b0d684 100644 --- a/src/components/routes/admin/service_detail/updater.tsx +++ b/src/components/routes/admin/service_detail/updater.tsx @@ -19,7 +19,6 @@ import 'moment/locale/fr'; import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { ServiceDetail } from '../service_detail'; -import ContainerCard from './container_card'; import SourceDialog from './source_dialog'; type ServiceUpdaterProps = { @@ -35,16 +34,6 @@ const ServiceUpdater = ({ service, setService, setModified }: ServiceUpdaterProp const [editedSourceID, setEditedSourceID] = useState(-1); const theme = useTheme(); - const handleMethodChange = event => { - setModified(true); - setService({ ...service, update_config: { ...service.update_config, method: event.target.value } }); - }; - - const handleUpdateContainerChange = newContainer => { - setModified(true); - setService({ ...service, update_config: { ...service.update_config, run_options: newContainer } }); - }; - const toggleSignatures = () => { setModified(true); setService({ @@ -112,24 +101,19 @@ const ServiceUpdater = ({ service, setService, setModified }: ServiceUpdaterProp {t('updater')} - - {t('updater.method')} - {service ? ( - - ) : ( - - )} + + {t('updater.signatures')} + + } label={t('updater.signatures.yes')} /> + } label={t('updater.signatures.no')} /> + + + + {t('updater.wait')} + + } label={t('updater.wait.yes')} /> + } label={t('updater.wait.no')} /> + {t('updater.interval')} @@ -147,31 +131,6 @@ const ServiceUpdater = ({ service, setService, setModified }: ServiceUpdaterProp )} - - {t('updater.run.options')} - {service ? ( - service.update_config.method === 'run' && ( - - ) - ) : ( - - )} - - - {t('updater.signatures')} - - } label={t('updater.signatures.yes')} /> - } label={t('updater.signatures.no')} /> - - - - {t('updater.wait')} - - } label={t('updater.wait.yes')} /> - } label={t('updater.wait.no')} /> - - - {t('updater.sources')}