Fix deployment actions check
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m58s
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m58s
This commit is contained in:
parent
1624309607
commit
f28744a004
@ -223,8 +223,8 @@ const Configure = () => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MenuItem value="LRN">Deployer LRN</MenuItem>
|
|
||||||
<MenuItem value="Auction">Create Auction</MenuItem>
|
<MenuItem value="Auction">Create Auction</MenuItem>
|
||||||
|
<MenuItem value="LRN">Deployer LRN</MenuItem>
|
||||||
</Select>
|
</Select>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
@ -56,7 +56,7 @@ export const DeploymentMenu = ({
|
|||||||
|
|
||||||
const updateDeployment = async () => {
|
const updateDeployment = async () => {
|
||||||
const isUpdated = await client.updateDeploymentToProd(deployment.id);
|
const isUpdated = await client.updateDeploymentToProd(deployment.id);
|
||||||
if (isUpdated) {
|
if (isUpdated.updateDeploymentToProd) {
|
||||||
await onUpdate();
|
await onUpdate();
|
||||||
toast({
|
toast({
|
||||||
id: 'deployment_changed_to_production',
|
id: 'deployment_changed_to_production',
|
||||||
@ -77,7 +77,7 @@ export const DeploymentMenu = ({
|
|||||||
const redeployToProd = async () => {
|
const redeployToProd = async () => {
|
||||||
const isRedeployed = await client.redeployToProd(deployment.id);
|
const isRedeployed = await client.redeployToProd(deployment.id);
|
||||||
setConfirmButtonLoadingLoading(false);
|
setConfirmButtonLoadingLoading(false);
|
||||||
if (isRedeployed) {
|
if (isRedeployed.redeployToProd) {
|
||||||
await onUpdate();
|
await onUpdate();
|
||||||
toast({
|
toast({
|
||||||
id: 'redeployed_to_production',
|
id: 'redeployed_to_production',
|
||||||
@ -100,7 +100,7 @@ export const DeploymentMenu = ({
|
|||||||
project.id,
|
project.id,
|
||||||
deployment.id,
|
deployment.id,
|
||||||
);
|
);
|
||||||
if (isRollbacked) {
|
if (isRollbacked.rollbackDeployment) {
|
||||||
await onUpdate();
|
await onUpdate();
|
||||||
toast({
|
toast({
|
||||||
id: 'deployment_rolled_back',
|
id: 'deployment_rolled_back',
|
||||||
@ -124,7 +124,7 @@ export const DeploymentMenu = ({
|
|||||||
setIsConfirmDeleteLoading(false);
|
setIsConfirmDeleteLoading(false);
|
||||||
setDeleteDeploymentDialog((preVal) => !preVal);
|
setDeleteDeploymentDialog((preVal) => !preVal);
|
||||||
|
|
||||||
if (isDeleted) {
|
if (isDeleted.deleteDeployment) {
|
||||||
await onUpdate();
|
await onUpdate();
|
||||||
toast({
|
toast({
|
||||||
id: 'deployment_removal_requested',
|
id: 'deployment_removal_requested',
|
||||||
|
Loading…
Reference in New Issue
Block a user