store/cockpit: add content sources api
Add a `contentSourcesApi` for the on-prem frontend. We need to add a small workaround and put these endpoints under the `cockpitApi` reducer. since RTK query here, doesn't like splitting out apis when they are fundamentally the same. To workaround this we can will just chain the endpoints so: `emptyCockpitApi` -> `contentSourcesApi` -> `cockpitApi` This allows us to keep the `contentSourcesApi` separate so we can export some of the endpoints so that the `cockpitApi` doesn't become a monolith.
This commit is contained in:
parent
b8ceba2e3e
commit
bc1564eddb
5 changed files with 60 additions and 27 deletions
|
|
@ -35,7 +35,7 @@ import {
|
|||
targetOptions,
|
||||
UNIT_GIB,
|
||||
} from '../../../../constants';
|
||||
import { useListSnapshotsByDateMutation } from '../../../../store/backendApi';
|
||||
import { useListSnapshotsByDateMutation } from '../../../../store/contentSourcesApi';
|
||||
import { useAppSelector } from '../../../../store/hooks';
|
||||
import { useGetSourceListQuery } from '../../../../store/provisioningApi';
|
||||
import { useShowActivationKeyQuery } from '../../../../store/rhsmApi';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue