Skip to content

Commit

Permalink
Renamed property for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mackdk committed Jul 24, 2023
1 parent 10bdb23 commit 88e5a51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Loading } from "components/utils";
type Props = {
payg: PaygFullType;
onChange: Function;
editing?: boolean;
readOnly?: boolean;
};

const PaygInfoEdit = (props: Props) => {
Expand Down Expand Up @@ -46,7 +46,7 @@ const PaygInfoEdit = (props: Props) => {
setItem(props.payg);
setErrors(null);
}}
disableEditing={!props.editing}
disableEditing={props.readOnly}
renderContent={() => (
<React.Fragment>
<PaygInfoView payg={props.payg} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Props = {
isInstance: boolean;
labelPrefix: string;
onChange: Function;
editing?: boolean;
readOnly?: boolean;
};

const PaygSshDataEdit = (props: Props) => {
Expand Down Expand Up @@ -60,7 +60,7 @@ const PaygSshDataEdit = (props: Props) => {
setItem(props.paygSshData);
setErrors(null);
}}
disableEditing={!props.editing}
disableEditing={props.readOnly}
renderContent={() => (
<React.Fragment>
<PaygSshDataView payg={props.paygSshData} isInstance={props.isInstance} />
Expand Down
6 changes: 3 additions & 3 deletions web/html/src/manager/admin/payg/payg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Payg = (props: Props) => {
/>
<PaygInfoEdit
payg={payg}
editing={!props.readOnly}
readOnly={props.readOnly}
onChange={(projectWithNewProperties) => {
setPayg(projectWithNewProperties);
cancelAction();
Expand All @@ -109,7 +109,7 @@ const Payg = (props: Props) => {
paygId={payg.id}
isInstance={true}
labelPrefix={"Instance"}
editing={!props.readOnly}
readOnly={props.readOnly}
onChange={(projectWithNewProperties) => {
setPayg(projectWithNewProperties);
cancelAction();
Expand All @@ -120,7 +120,7 @@ const Payg = (props: Props) => {
paygId={payg.id}
isInstance={false}
labelPrefix={"Bastion"}
editing={!props.readOnly}
readOnly={props.readOnly}
onChange={(projectWithNewProperties) => {
setPayg(projectWithNewProperties);
cancelAction();
Expand Down

0 comments on commit 88e5a51

Please sign in to comment.