Check matching names and length for assets and metadata (#10)

* Name and length check for assets & metadata

* Disable update_metadata button on metadata modal if no metadatafile is specified
This commit is contained in:
Serkan Reis
2022-08-01 12:28:12 +03:00
committed by GitHub
parent dedc4cffc3
commit 790f5b7c8d
2 changed files with 89 additions and 54 deletions
+3 -1
View File
@@ -122,7 +122,9 @@ export const MetadataModal = (props: MetadataModalProps) => {
subtitle="Enter trait types and values"
title="Attributes"
/>
<Button onClick={generateUpdatedMetadata}>Update Metadata</Button>
<Button isDisabled={!props.metadataFile} onClick={generateUpdatedMetadata}>
Update Metadata
</Button>
</FormGroup>
</label>
</label>