mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-18 15:02:09 +00:00
fix bug
This commit is contained in:
parent
2dd706e5bc
commit
de53cea4c4
@ -164,7 +164,7 @@ class CategoryWindow extends React.Component {
|
||||
}
|
||||
|
||||
CategoryWindow.propTypes = {
|
||||
type: PropTypes.oneOf(['Scene', 'Mesh', 'Map', 'Texture', 'Material', 'Audio', 'Particle', 'Screenshot', 'Video']),
|
||||
type: PropTypes.oneOf(['Scene', 'Mesh', 'Map', 'Texture', 'Material', 'Audio', 'Animation', 'Particle', 'Screenshot', 'Video']),
|
||||
typeName: PropTypes.string,
|
||||
callback: PropTypes.func
|
||||
};
|
||||
|
||||
@ -60,8 +60,7 @@ class EditWindow extends React.Component {
|
||||
value={categoryID}
|
||||
onChange={this.handleCategoryChange}
|
||||
/>
|
||||
<Button show={!enableAuthority || authorities.includes('LIST_CATEGORY')}
|
||||
onClick={this.handleEditCategoryList}
|
||||
<Button onClick={this.handleEditCategoryList}
|
||||
>{_t('Edit')}</Button>
|
||||
</FormControl>
|
||||
<FormControl>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user