File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/create/[id]/createBlueprintSteps Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const PatternDetails = ({
27
27
const githubUserName = useAuthStore ( ( state ) => state . username ) ;
28
28
const store = useCreateBlueprintStore ( ) ;
29
29
const validationErrors = useCreateBlueprintStore ( ( state ) => state . validationErrors ) ;
30
-
30
+ const { isAdmin } = useAuthStore ( ) ;
31
31
const { setField } = store ;
32
32
33
33
const checkExistingBlueprint = useDebouncedCallback ( async ( circuitName : string ) => {
@@ -70,7 +70,7 @@ const PatternDetails = ({
70
70
error = { ! ! validationErrors . title }
71
71
errorMessage = { validationErrors . title }
72
72
/>
73
- < Input title = "Slug" disabled value = { store . slug } />
73
+ < Input title = "Slug" disabled = { ! isAdmin } value = { store . slug } onChange = { ( e ) => setField ( 'slug' , e . target . value ) } />
74
74
{ /* TODO: Add check for email body max length */ }
75
75
< DragAndDropFile
76
76
accept = ".eml"
You can’t perform that action at this time.
0 commit comments