store/cockpitApi: get blueprint endpoint
Create a get blueprint endpoint for the on-prem store.
This commit is contained in:
parent
5988c42b6f
commit
34bf64debc
6 changed files with 50 additions and 9 deletions
|
|
@ -5,9 +5,9 @@ import { Button, Modal, ModalVariant } from '@patternfly/react-core';
|
|||
|
||||
import { BuildImagesButton } from './BuildImagesButton';
|
||||
|
||||
import { useGetBlueprintQuery } from '../../store/backendApi';
|
||||
import { selectSelectedBlueprintId } from '../../store/BlueprintSlice';
|
||||
import { useAppSelector } from '../../store/hooks';
|
||||
import { useGetBlueprintQuery } from '../../store/imageBuilderApi';
|
||||
|
||||
type blueprintDiffProps = {
|
||||
// baseVersion is the version of the blueprint to compare the latest version against
|
||||
|
|
|
|||
|
|
@ -19,12 +19,12 @@ import { addNotification } from '@redhat-cloud-services/frontend-components-noti
|
|||
import { skipToken } from '@reduxjs/toolkit/query';
|
||||
|
||||
import { targetOptions } from '../../constants';
|
||||
import { useGetBlueprintQuery } from '../../store/backendApi';
|
||||
import { selectSelectedBlueprintId } from '../../store/BlueprintSlice';
|
||||
import { useAppDispatch, useAppSelector } from '../../store/hooks';
|
||||
import {
|
||||
ImageTypes,
|
||||
useComposeBlueprintMutation,
|
||||
useGetBlueprintQuery,
|
||||
} from '../../store/imageBuilderApi';
|
||||
|
||||
type BuildImagesButtonPropTypes = {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import { useNavigate } from 'react-router-dom';
|
|||
import CreateImageWizard from './CreateImageWizard';
|
||||
import { mapRequestToState } from './utilities/requestMapper';
|
||||
|
||||
import { useGetBlueprintQuery } from '../../store/backendApi';
|
||||
import { useAppDispatch } from '../../store/hooks';
|
||||
import { useGetBlueprintQuery } from '../../store/imageBuilderApi';
|
||||
import { loadWizardState } from '../../store/wizardSlice';
|
||||
import { resolveRelPath } from '../../Utilities/path';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
import { useEffect, useState } from 'react';
|
||||
|
||||
import { UNIQUE_VALIDATION_DELAY } from '../../../constants';
|
||||
import { useLazyGetBlueprintsQuery } from '../../../store/backendApi';
|
||||
import { useAppSelector } from '../../../store/hooks';
|
||||
import {
|
||||
BlueprintsResponse,
|
||||
useLazyGetBlueprintsQuery,
|
||||
} from '../../../store/imageBuilderApi';
|
||||
import { BlueprintsResponse } from '../../../store/imageBuilderApi';
|
||||
import { useShowActivationKeyQuery } from '../../../store/rhsmApi';
|
||||
import {
|
||||
selectBlueprintId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue