Skip to content

Commit

Permalink
fix(instance) show help text on instance location to direct user how …
Browse files Browse the repository at this point in the history
…to start a migration

Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Sep 19, 2024
1 parent e9cca8b commit f42e485
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/pages/instances/forms/EditInstanceDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FC } from "react";
import { Col, Input, Row } from "@canonical/react-components";
import { Col, Input, Row, Select } from "@canonical/react-components";
import ProfileSelector from "pages/profiles/ProfileSelector";
import { FormikProps } from "formik/dist/types";
import { EditInstanceFormValues } from "pages/instances/EditInstance";
Expand Down Expand Up @@ -42,7 +42,6 @@ const EditInstanceDetails: FC<Props> = ({ formik, project }) => {
onChange={formik.handleChange}
value={formik.values.name}
error={formik.touched.name ? formik.errors.name : null}
required
disabled={true}
/>
<AutoExpandingTextArea
Expand All @@ -62,14 +61,19 @@ const EditInstanceDetails: FC<Props> = ({ formik, project }) => {
{isClustered && (
<Row>
<Col size={12}>
<Input
<Select
id="target"
name="target"
type="text"
options={[
{
label: formik.values.location,
value: formik.values.location,
},
]}
label="Instance location"
value={formik.values.location}
required
disabled={true}
help="Use the migrate button in the header to move the instance to another cluster member"
/>
</Col>
</Row>
Expand Down

0 comments on commit f42e485

Please sign in to comment.