mirror of
https://github.com/maputnik/editor.git
synced 2026-07-16 02:47:26 +00:00
Fixed field spec for image/video.
This commit is contained in:
@@ -104,7 +104,7 @@ class ImageSourceEditor extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return <div>
|
return <div>
|
||||||
<InputBlock label={"Image URL"} doc={latest.source_image.url.doc}>
|
<InputBlock label={"Image URL"} fieldSpec={latest.source_image.url}>
|
||||||
<UrlInput
|
<UrlInput
|
||||||
value={this.props.source.url}
|
value={this.props.source.url}
|
||||||
onChange={url => this.props.onChange({
|
onChange={url => this.props.onChange({
|
||||||
@@ -155,7 +155,7 @@ class VideoSourceEditor extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return <div>
|
return <div>
|
||||||
<InputBlock label={"Video URL"} doc={latest.source_video.urls.doc}>
|
<InputBlock label={"Video URL"} fieldSpec={latest.source_video.urls}>
|
||||||
<DynamicArrayInput
|
<DynamicArrayInput
|
||||||
type="string"
|
type="string"
|
||||||
value={this.props.source.urls}
|
value={this.props.source.urls}
|
||||||
|
|||||||
Reference in New Issue
Block a user