diff --git a/web/src/components/CreateShortcutDialog.tsx b/web/src/components/CreateShortcutDialog.tsx index 20a52e8..1df7f6d 100644 --- a/web/src/components/CreateShortcutDialog.tsx +++ b/web/src/components/CreateShortcutDialog.tsx @@ -14,6 +14,7 @@ const CreateShortcutDialog: React.FC = (props: Props) => { const { destroy, workspaceId, shortcutId } = props; const [name, setName] = useState(""); const [link, setLink] = useState(""); + const [visibility, setVisibility] = useState("PRIVATE"); const requestState = useLoading(false); useEffect(() => { @@ -36,6 +37,11 @@ const CreateShortcutDialog: React.FC = (props: Props) => { setLink(text); }; + const handleVisibilityInputChange = (e: React.ChangeEvent) => { + const text = e.target.value as string; + setVisibility(text as Visibility); + }; + const handleSaveBtnClick = async () => { if (!name) { toastHelper.error("Name is required"); @@ -81,6 +87,33 @@ const CreateShortcutDialog: React.FC = (props: Props) => { Link +
+ Visibility +
+ + + + +
+