From 22bfe2da132af2441c9ed4007adbc8591d258715 Mon Sep 17 00:00:00 2001 From: kamre Date: Tue, 24 Aug 2021 13:32:42 +0700 Subject: [PATCH] Support readonly flag in URLProperty. (#1041) --- webapp/src/components/properties/link/link.tsx | 2 ++ webapp/src/components/propertyValueElement.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/webapp/src/components/properties/link/link.tsx b/webapp/src/components/properties/link/link.tsx index 53590b05b..ac3a01477 100644 --- a/webapp/src/components/properties/link/link.tsx +++ b/webapp/src/components/properties/link/link.tsx @@ -11,6 +11,7 @@ import LinkIcon from '../../../widgets/icons/Link' type Props = { value: string + readonly?: boolean onChange: (value: string) => void onSave: () => void onCancel: () => void @@ -39,6 +40,7 @@ const URLProperty = (props: Props): JSX.Element => { className='octo-propertyvalue' placeholderText='' value={props.value} + readonly={props.readonly} onChange={props.onChange} onSave={props.onSave} onCancel={props.onCancel} diff --git a/webapp/src/components/propertyValueElement.tsx b/webapp/src/components/propertyValueElement.tsx index fcdff1961..48929d161 100644 --- a/webapp/src/components/propertyValueElement.tsx +++ b/webapp/src/components/propertyValueElement.tsx @@ -208,6 +208,7 @@ const PropertyValueElement = (props:Props): JSX.Element => { return ( setValue(propertyValue)}