muba-posting 5.0.13 → 5.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Posting.js +1 -0
- package/Publish4.js +5 -3
- package/package.json +1 -1
package/Posting.js
CHANGED
|
@@ -558,6 +558,7 @@ export default class Posting extends React.Component {
|
|
|
558
558
|
scroll={(ref) => this.scroll.scrollIntoView(ref)}
|
|
559
559
|
saveEditAd={() => this._saveEditAd()}
|
|
560
560
|
goToPage={(view) => this._goToPage(view)}
|
|
561
|
+
businessId={this.state.businessId}
|
|
561
562
|
request={this.props.request}
|
|
562
563
|
context={this.props.context}
|
|
563
564
|
showLoading={() => this._showLoading()}
|
package/Publish4.js
CHANGED
|
@@ -15,7 +15,8 @@ export default class Publish4 extends React.Component {
|
|
|
15
15
|
super(props);
|
|
16
16
|
|
|
17
17
|
this.state = {
|
|
18
|
-
minHeight: 0
|
|
18
|
+
minHeight: 0,
|
|
19
|
+
video: this.props.postingAd.video
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -28,6 +29,7 @@ export default class Publish4 extends React.Component {
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
nextStep() {
|
|
32
|
+
this.props.postingAd.video = this.state.video;
|
|
31
33
|
this.setState({ showErrorNoSelectedImages: false });
|
|
32
34
|
if (this.props.postingAd.id == null || this.props.fullPosting) {
|
|
33
35
|
if (this.props.postingAd.adTypeDetails.filter(function (detail) {
|
|
@@ -55,9 +57,9 @@ export default class Publish4 extends React.Component {
|
|
|
55
57
|
referenceType='AD'
|
|
56
58
|
maxPictures={this.props.maxPictures}
|
|
57
59
|
images={this.props.postingAd.images}
|
|
58
|
-
video={this.
|
|
60
|
+
video={this.state.video}
|
|
59
61
|
updateImages={images => this.props.postingAd.images = images}
|
|
60
|
-
updateVideo={video => this.
|
|
62
|
+
updateVideo={video => this.setState({ video: video })}
|
|
61
63
|
deletedFiles={this.props.postingAd.deletedFiles}
|
|
62
64
|
showVideo={this.props.businessId} />
|
|
63
65
|
<View style={commonStyles.conseilBox}>
|