Skip to content

Commit

Permalink
disable msg nit and fix rendering bug (#3687)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Sep 29, 2023
1 parent 3c208e0 commit d0ab2a5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ const AppDataContainer: React.FC<AppDataContainerProps> = ({ tabParam }) => {
});
}, [
servicesFromYaml,
currentTab,
latestProto,
previewRevision,
latestRevision.revision_number,
Expand Down Expand Up @@ -347,7 +348,7 @@ const AppDataContainer: React.FC<AppDataContainerProps> = ({ tabParam }) => {
latestRevision.status === "CREATED" ||
latestRevision.status === "AWAITING_BUILD_ARTIFACT"
}
disabledTooltipMessage="Please wait for the build to complete before updating the app"
disabledTooltipMessage="Please wait for the deploy to complete before updating the app"
>
<Icon src={save} height={"13px"} />
<Spacer inline x={0.5} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const Environment: React.FC<Props> = ({ latestSource }) => {
latestRevision.status === "CREATED" ||
latestRevision.status === "AWAITING_BUILD_ARTIFACT"
}
disabledTooltipMessage="Please wait for the build to complete before updating environment variables"
disabledTooltipMessage="Please wait for the deploy to complete before updating environment variables"
>
Update app
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Overview: React.FC = () => {
latestRevision.status === "CREATED" ||
latestRevision.status === "AWAITING_BUILD_ARTIFACT"
}
disabledTooltipMessage="Please wait for the build to complete before updating services"
disabledTooltipMessage="Please wait for the deploy to complete before updating services"
>
Update app
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ const Resources: React.FC<ResourcesProps> = ({
<>
<Spacer y={1} />
<Controller
name={isPredeploy ? `app.predeploy.${index}.cpuCores` : `app.services.${index}.cpuCores`}
name={
isPredeploy
? `app.predeploy.${index}.cpuCores`
: `app.services.${index}.cpuCores`
}
control={control}
render={({ field: { value, onChange } }) => (
<InputSlider
Expand All @@ -60,7 +64,11 @@ const Resources: React.FC<ResourcesProps> = ({
/>
<Spacer y={1} />
<Controller
name={isPredeploy ? `app.predeploy.${index}.ramMegabytes` : `app.services.${index}.ramMegabytes`}
name={
isPredeploy
? `app.predeploy.${index}.ramMegabytes`
: `app.services.${index}.ramMegabytes`
}
control={control}
render={({ field: { value, onChange } }) => (
<InputSlider
Expand Down

0 comments on commit d0ab2a5

Please sign in to comment.