All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.process.ConfirmDialog.js Maven / Gradle / Ivy

There is a newer version: 0.80.3
Show newest version

import { useTranslation } from 'react-i18next';
import { getProcessName } from 'components/form/utils/form-utils';
import {
	Button,
  Dialog,
  DialogActions,
  DialogContent,
  DialogContentText,
  DialogTitle,
  useTheme,
  Box,
  Table,
  TableBody,
  TableCell,
  TableRow } from '@mui/material'
import { toDisplayValue }            from "components/render/utils/render";
import { useTranslator } from 'hooks/translator';

const ProcessTable = ({processInstance}) => {
	const { translator, t } = useTranslator()
	const cellStyle = {border: 'none'}

	return (
      
					
              {t('process_name')}:
              {getProcessName(translator, processInstance)}
					
					
						{t('starter')}:
						{processInstance.starter?.username}
					
					
						{t('started')}:
						{toDisplayValue(processInstance.startTime)}
					
        
); } const ConfirmDialog = ({processInstance, onClick, open, setOpen}) => { const {t} = useTranslation() const theme = useTheme() const handleClose = () => { setOpen(false) } return ( {t('processes.killconfirmation')} {t('processes.killwarning')} ); } export default ConfirmDialog;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy