File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/app/create/[id]/createBlueprintSteps Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ const PatternDetails = ({
35
35
const validationErrors = useCreateBlueprintStore ( ( state ) => state . validationErrors ) ;
36
36
const [ isFileUploading , setIsFileUploading ] = useState ( false ) ;
37
37
38
+ const { isAdmin } = useAuthStore ( ) ;
38
39
const { setField } = store ;
39
40
40
41
const [ isCheckExistingBlueprintLoading , setIsCheckExistingBlueprintLoading ] = useState ( false ) ;
@@ -87,7 +88,7 @@ const PatternDetails = ({
87
88
error = { ! ! validationErrors . title || store . title ?. includes ( ' ' ) }
88
89
errorMessage = { validationErrors . title || ( store . title ?. includes ( ' ' ) ? 'Spaces are not allowed in the pattern name' : '' ) }
89
90
/>
90
- < Input title = "Slug" disabled value = { store . slug } loading = { isCheckExistingBlueprintLoading } />
91
+ < Input title = "Slug" disabled = { ! isAdmin } value = { store . slug } onChange = { ( e ) => setField ( 'slug' , e . target . value ) } />
91
92
{ /* TODO: Add check for email body max length */ }
92
93
{ emlContent && id !== 'new' ? null : (
93
94
< DragAndDropFile
You can’t perform that action at this time.
0 commit comments