Skip to content

Commit

Permalink
Merge pull request #680 from johnduprey/dev
Browse files Browse the repository at this point in the history
Individual Domain
  • Loading branch information
KelvinTegelaar authored Jan 27, 2022
2 parents 0699a84 + 3aad91b commit 49e4234
Show file tree
Hide file tree
Showing 3 changed files with 316 additions and 124 deletions.
11 changes: 10 additions & 1 deletion src/components/contentcards/ListGroupContentCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ export default function ListGroupContentCard({
error,
errorMessage,
}) {
let bodyClass = ''
if (!isFetching && !error) {
bodyClass = 'p-0'
}
return (
<CippContentCard title={title} icon={icon} bodyClass="p-0" className="list-group-content-card">
<CippContentCard
title={title}
icon={icon}
bodyClass={bodyClass}
className="list-group-content-card"
>
{isFetching && <CSpinner />}
{!isFetching && error && <>{errorMessage}</>}
{!isFetching && !error && (
Expand Down
10 changes: 10 additions & 0 deletions src/store/api/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ export const domainsApi = baseApi.injectEndpoints({
},
}),
}),
execDnsHelper: builder.query({
query: ({ action, domain }) => ({
path: '/api/ExecDnsHelper',
params: {
Action: action,
Domain: domain,
},
}),
}),
getDnsConfig: builder.query({
query: () => ({
path: '/api/ExecDnsConfig',
Expand All @@ -54,5 +63,6 @@ export const {
useEditDnsConfigQuery,
useLazyEditDnsConfigQuery,
useGetDnsConfigQuery,
useExecDnsHelperQuery,
useLazyGetDnsConfigQuery,
} = domainsApi
Loading

0 comments on commit 49e4234

Please sign in to comment.