muba-posting 4.1.24 → 4.1.25
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 +15 -5
- package/Preview.js +1 -1
- package/locales/ar.json +2 -1
- package/locales/en.json +2 -1
- package/locales/es.json +2 -1
- package/locales/fr.json +2 -1
- package/locales/it.json +2 -1
- package/locales/nl.json +2 -1
- package/package.json +2 -2
package/Posting.js
CHANGED
|
@@ -199,11 +199,11 @@ export default class Posting extends React.Component {
|
|
|
199
199
|
}
|
|
200
200
|
const hasListings = await this.checkListings();
|
|
201
201
|
if (this.state.adId != null) {
|
|
202
|
+
await this.loadAd();
|
|
202
203
|
this.setState({ view: this.state.originView });
|
|
203
204
|
if (this.props.changeView) {
|
|
204
205
|
this.props.changeView(this.state.originView)
|
|
205
206
|
}
|
|
206
|
-
await this.loadAd();
|
|
207
207
|
} else {
|
|
208
208
|
await this.setState({ isLoading: false });
|
|
209
209
|
if (!hasListings) {
|
|
@@ -275,10 +275,20 @@ export default class Posting extends React.Component {
|
|
|
275
275
|
|
|
276
276
|
async loadAd() {
|
|
277
277
|
const bddAd = await this.getAd(this.state.adId);
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
278
|
+
if (bddAd.status === 'PENDING_CREATED') {
|
|
279
|
+
await this.setState({
|
|
280
|
+
postingAd: { ...this.state.postingAd, ...bddAd },
|
|
281
|
+
isLoading: false,
|
|
282
|
+
adId: null,
|
|
283
|
+
originView: Views.PUBLISH_1,
|
|
284
|
+
fullPosting: true
|
|
285
|
+
})
|
|
286
|
+
} else {
|
|
287
|
+
await this.setState({
|
|
288
|
+
postingAd: { ...this.state.postingAd, ...bddAd },
|
|
289
|
+
isLoading: false
|
|
290
|
+
});
|
|
291
|
+
}
|
|
282
292
|
}
|
|
283
293
|
|
|
284
294
|
async _goToPage(view, editingStepOne, params) {
|
package/Preview.js
CHANGED
|
@@ -194,7 +194,7 @@ export default class Preview extends React.Component {
|
|
|
194
194
|
<View style={commonStyles.previewHighlightContainer}>
|
|
195
195
|
<TouchableOpacity style={[commonStyles.previewHighlightButton, commonStyles.alignCenter]} activeOpacity={0.5} onPress={() => this.props.highlight()}>
|
|
196
196
|
<Image style={commonStyles.previewHighlightImage} source={require('./assets/images/sparks.png')} />
|
|
197
|
-
<Text style={commonStyles.previewHighlightText}>
|
|
197
|
+
<Text style={commonStyles.previewHighlightText}>{strings('setup.highlight')}</Text>
|
|
198
198
|
</TouchableOpacity>
|
|
199
199
|
</View>
|
|
200
200
|
:
|
package/locales/ar.json
CHANGED
package/locales/en.json
CHANGED
package/locales/es.json
CHANGED
package/locales/fr.json
CHANGED
package/locales/it.json
CHANGED
package/locales/nl.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muba-posting",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.25",
|
|
4
4
|
"description": "Posting",
|
|
5
5
|
"main": "Posting.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"muba-output-text": "4",
|
|
30
30
|
"muba-phone-group": "4",
|
|
31
31
|
"muba-picture": "4",
|
|
32
|
-
"muba-payment-online": "
|
|
32
|
+
"muba-payment-online": "4",
|
|
33
33
|
"muba-popup-advice": "4",
|
|
34
34
|
"muba-popup-permissions": "4",
|
|
35
35
|
"muba-radio-button-group": "4"
|