0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 21:52:43 +00:00

Add thumbnail to metadata and saving functions

This commit is contained in:
G.Ambatte
2021-10-28 00:29:42 +13:00
parent 3ce1ea610d
commit 20d7193fb2
4 changed files with 20 additions and 7 deletions

View File

@@ -18,7 +18,8 @@ const MetadataEditor = createClass({
published : false,
authors : [],
systems : [],
renderer : 'legacy'
renderer : 'legacy',
thumbnail : ''
},
onChange : ()=>{}
};
@@ -161,6 +162,11 @@ const MetadataEditor = createClass({
<textarea value={this.props.metadata.description} className='value'
onChange={(e)=>this.handleFieldChange('description', e)} />
</div>
<div className='field thumbnail'>
<label>thumbnail URL</label>
<textarea value={this.props.metadata.thumbnail} className='value'
onChange={(e)=>this.handleFieldChange('thumbnail', e)} />
</div>
{/*}
<div className='field tags'>
<label>tags</label>

View File

@@ -45,7 +45,8 @@ const EditPage = createClass({
published : false,
authors : [],
systems : [],
renderer : 'legacy'
renderer : 'legacy',
thumbnail : ''
}
};
},