|
1 | | -import { useCallback, useContext, useState } from "react"; |
2 | | -import { useAppSelector, useAppDispatch } from "../../../../store/hooks"; |
3 | | -import { CreateFeedContext } from "../../../CreateFeed/context"; |
4 | | -import { AnalysisIcon } from "../../../Icons"; |
5 | | -import OperationButton from "./OperationButton"; |
6 | | -import { AddNodeContext } from "../../../AddNode/context"; |
7 | | -import { PipelineContext } from "../../../PipelinesCopy/context"; |
8 | | - |
9 | | -import PipelinesCopy from "../../../PipelinesCopy"; |
10 | | - |
11 | | -import { |
12 | | - createFeeds, |
13 | | - createFeedInstanceWithFS, |
14 | | -} from "../../../CreateFeed/createFeedHelper"; |
15 | | -import { type ChRISFeed, Types } from "../../../CreateFeed/types/feed"; |
16 | | - |
17 | 1 | import { |
18 | 2 | Modal, |
19 | 3 | ModalVariant, |
20 | 4 | Wizard, |
21 | 5 | WizardHeader, |
22 | 6 | WizardStep, |
23 | 7 | } from "@patternfly/react-core"; |
24 | | -import BasicInformation from "../../../CreateFeed/BasicInformation"; |
25 | | -import withSelectionAlert from "../../../CreateFeed/SelectionAlert"; |
26 | | -import { MainRouterContext } from "../../../../routes"; |
27 | | -import Review from "../../../CreateFeed/Review"; |
28 | 8 | import { useQueryClient } from "@tanstack/react-query"; |
29 | | -import type { SelectionPayload } from "../../../../store/cart/types"; |
30 | | -import { getFeed, GetFeedPluginInstances } from "../../../../api/serverApi"; |
31 | | -import type { Feed, PluginInstance } from "../../../../api/types"; |
| 9 | +import { useCallback, useContext, useState } from "react"; |
32 | 10 | import { catchError } from "../../../../api/common"; |
| 11 | +import { getFeed, getFeedPluginInstances } from "../../../../api/serverApi"; |
| 12 | +import type { Feed, PluginInstance } from "../../../../api/types"; |
| 13 | +import { MainRouterContext } from "../../../../routes"; |
| 14 | +import type { SelectionPayload } from "../../../../store/cart/types"; |
| 15 | +import { useAppDispatch, useAppSelector } from "../../../../store/hooks"; |
| 16 | +import { AddNodeContext } from "../../../AddNode/context"; |
| 17 | +import BasicInformation from "../../../CreateFeed/BasicInformation"; |
| 18 | +import { CreateFeedContext } from "../../../CreateFeed/context"; |
| 19 | +import { |
| 20 | + createFeedInstanceWithFS, |
| 21 | + createFeeds, |
| 22 | +} from "../../../CreateFeed/createFeedHelper"; |
| 23 | +import Review from "../../../CreateFeed/Review"; |
| 24 | +import withSelectionAlert from "../../../CreateFeed/SelectionAlert"; |
| 25 | +import { type ChRISFeed, Types } from "../../../CreateFeed/types/feed"; |
| 26 | +import { AnalysisIcon } from "../../../Icons"; |
| 27 | +import PipelinesCopy from "../../../PipelinesCopy"; |
| 28 | +import { PipelineContext } from "../../../PipelinesCopy/context"; |
| 29 | +import OperationButton from "./OperationButton"; |
33 | 30 |
|
34 | 31 | type Props = { |
35 | 32 | handleOperations: (operationKey: string) => void; |
@@ -194,7 +191,7 @@ export default (props: Props) => { |
194 | 191 | }; |
195 | 192 |
|
196 | 193 | const feedIDToLastChRISFile = async (feedID: number): Promise<ChRISFeed> => { |
197 | | - const pluginInstances = await GetFeedPluginInstances(feedID); |
| 194 | + const pluginInstances = await getFeedPluginInstances(feedID); |
198 | 195 | if (!pluginInstances.data) { |
199 | 196 | return { name: "", filename: "", theID: -1, createDateTime: "" }; |
200 | 197 | } |
|
0 commit comments