Added loader component for Gitops page (#4192)
* Added loader component for gitops page Signed-off-by: Saranya-jena <saranya.jena@harness.io> * updated readme Signed-off-by: Saranya-jena <saranya.jena@harness.io> --------- Signed-off-by: Saranya-jena <saranya.jena@harness.io>
This commit is contained in:
parent
f242925299
commit
dc5757c1d5
|
@ -1,4 +1,6 @@
|
||||||
## Installation steps for Litmus 3.0.0-beta9
|
# [LitmusChaos 3.0.0](https://docs.litmuschaos.io/)
|
||||||
|
|
||||||
|
## Installation steps for Litmus 3.0.0
|
||||||
|
|
||||||
### Mongo installation via Helm - Bitnami Mongo
|
### Mongo installation via Helm - Bitnami Mongo
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import GitopsView from '@views/Gitops/Gitops';
|
||||||
import { enableGitOps, getGitOpsDetails, updateGitOps } from '@api/core/gitops';
|
import { enableGitOps, getGitOpsDetails, updateGitOps } from '@api/core/gitops';
|
||||||
import { getScope } from '@utils';
|
import { getScope } from '@utils';
|
||||||
import { disableGitOps } from '@api/core/gitops/disableGitops';
|
import { disableGitOps } from '@api/core/gitops/disableGitops';
|
||||||
|
import Loader from '@components/Loader';
|
||||||
|
|
||||||
export default function GitopsController(): React.ReactElement {
|
export default function GitopsController(): React.ReactElement {
|
||||||
const scope = getScope();
|
const scope = getScope();
|
||||||
|
@ -44,17 +45,25 @@ export default function GitopsController(): React.ReactElement {
|
||||||
onError: err => showError(err.message)
|
onError: err => showError(err.message)
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<GitopsView
|
<Loader
|
||||||
gitopsDetails={getGitOpsDetailsData?.getGitOpsDetails}
|
loading={getGitOpsDetailsLoading}
|
||||||
enableGitops={enableGitopsMutation}
|
height="fit-content"
|
||||||
disableGitops={disableGitopsMutation}
|
style={{
|
||||||
updateGitops={updateGitopsMutation}
|
minHeight: getGitOpsDetailsLoading ? 'calc(var(--page-min-height) - var(--spacing-xxlarge))' : 'initial'
|
||||||
loading={{
|
|
||||||
getGitOpsDetailsLoading: getGitOpsDetailsLoading,
|
|
||||||
disableGitopsMutationLoading: disableGitopsMutationLoading,
|
|
||||||
updateGitopsMutationLoading: updateGitopsMutationLoading,
|
|
||||||
enableGitopsMutationLoading: enableGitopsMutationLoading
|
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
|
<GitopsView
|
||||||
|
gitopsDetails={getGitOpsDetailsData?.getGitOpsDetails}
|
||||||
|
enableGitops={enableGitopsMutation}
|
||||||
|
disableGitops={disableGitopsMutation}
|
||||||
|
updateGitops={updateGitopsMutation}
|
||||||
|
loading={{
|
||||||
|
getGitOpsDetailsLoading: getGitOpsDetailsLoading,
|
||||||
|
disableGitopsMutationLoading: disableGitopsMutationLoading,
|
||||||
|
updateGitopsMutationLoading: updateGitopsMutationLoading,
|
||||||
|
enableGitopsMutationLoading: enableGitopsMutationLoading
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Loader>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ export function generateInviteUsersTableContent(userData: Array<User> | undefine
|
||||||
userData && userData.length > 0
|
userData && userData.length > 0
|
||||||
? userData.map(user => {
|
? userData.map(user => {
|
||||||
return {
|
return {
|
||||||
id: user.userID,
|
userID: user.userID,
|
||||||
username: user.username,
|
username: user.username,
|
||||||
email: user.email ?? '',
|
email: user.email ?? '',
|
||||||
name: user.name ?? ''
|
name: user.name ?? ''
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 124 KiB |
|
@ -1,5 +1,7 @@
|
||||||
## **ChaosCenter**
|
## **ChaosCenter**
|
||||||
|
|
||||||
|
[Deprecated with the release of Litmus 3.0.0. Visit [here](https://github.com/litmuschaos/litmus/tree/master/chaoscenter) for installation guide.]
|
||||||
|
|
||||||
ChaosCenter provides console and UI experience for managing, monitoring, and events around chaos workflows. Chaos workflows consist of a sequence of experiments run together to achieve the objective of introducing some kind of fault into an application or the Kubernetes platform.
|
ChaosCenter provides console and UI experience for managing, monitoring, and events around chaos workflows. Chaos workflows consist of a sequence of experiments run together to achieve the objective of introducing some kind of fault into an application or the Kubernetes platform.
|
||||||
|
|
||||||
## **Platforms Support**
|
## **Platforms Support**
|
||||||
|
@ -70,7 +72,6 @@ kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/lit
|
||||||
|
|
||||||
- All environment variables.
|
- All environment variables.
|
||||||
|
|
||||||
|
|
||||||
#### Retrieving external url to access the litmus portal
|
#### Retrieving external url to access the litmus portal
|
||||||
|
|
||||||
##### GKE/Okteto Cloud/EKS
|
##### GKE/Okteto Cloud/EKS
|
||||||
|
@ -97,6 +98,7 @@ ChaosCenter provides console or UI experience for managing, monitoring, and even
|
||||||
View the User Guide <b>[here](https://docs.litmuschaos.io/)</b>
|
View the User Guide <b>[here](https://docs.litmuschaos.io/)</b>
|
||||||
|
|
||||||
### **Local Development Guide for ChaosCenter**
|
### **Local Development Guide for ChaosCenter**
|
||||||
|
|
||||||
Local Development Guide for ChaosCenter can be found <b>[here](https://github.com/litmuschaos/litmus/wiki/ChaosCenter-Development-Guide)</b>
|
Local Development Guide for ChaosCenter can be found <b>[here](https://github.com/litmuschaos/litmus/wiki/ChaosCenter-Development-Guide)</b>
|
||||||
|
|
||||||
### **Upgrade from 3.0.0-beta7 to 3.0.0-beta8**
|
### **Upgrade from 3.0.0-beta7 to 3.0.0-beta8**
|
||||||
|
|
Loading…
Reference in New Issue