lint
This commit is contained in:
parent
fdfb455b02
commit
46744a5cd8
|
@ -12,7 +12,6 @@ import {
|
||||||
import {
|
import {
|
||||||
Accordion,
|
Accordion,
|
||||||
AccordionItem,
|
AccordionItem,
|
||||||
Dropdown,
|
|
||||||
Button,
|
Button,
|
||||||
Stack,
|
Stack,
|
||||||
ButtonSet,
|
ButtonSet,
|
||||||
|
@ -32,14 +31,6 @@ import ErrorContext from '../contexts/ErrorContext';
|
||||||
import { ProcessFile, ProcessModel, RecentProcessModel } from '../interfaces';
|
import { ProcessFile, ProcessModel, RecentProcessModel } from '../interfaces';
|
||||||
import ButtonWithConfirmation from '../components/ButtonWithConfirmation';
|
import ButtonWithConfirmation from '../components/ButtonWithConfirmation';
|
||||||
|
|
||||||
interface ProcessModelFileCarbonDropdownItem {
|
|
||||||
label: string;
|
|
||||||
action: string;
|
|
||||||
processModelFile: ProcessFile;
|
|
||||||
needsConfirmation: boolean;
|
|
||||||
icon: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
const storeRecentProcessModelInLocalStorage = (
|
const storeRecentProcessModelInLocalStorage = (
|
||||||
processModelForStorage: any,
|
processModelForStorage: any,
|
||||||
params: any
|
params: any
|
||||||
|
@ -189,13 +180,6 @@ export default function ProcessModelShow() {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const onProcessModelFileAction = (selection: any) => {
|
|
||||||
const { selectedItem } = selection;
|
|
||||||
if (selectedItem.action === 'delete') {
|
|
||||||
onDeleteFile(selectedItem.processModelFile.name);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const onSetPrimaryFile = (fileName: string) => {
|
const onSetPrimaryFile = (fileName: string) => {
|
||||||
const url = `/process-models/${params.process_group_id}/${params.process_model_id}`;
|
const url = `/process-models/${params.process_group_id}/${params.process_model_id}`;
|
||||||
const httpMethod = 'PUT';
|
const httpMethod = 'PUT';
|
||||||
|
|
Loading…
Reference in New Issue