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 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
- await this.setState({
279
- postingAd: { ...this.state.postingAd, ...bddAd },
280
- isLoading: false
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}>Highlight</Text>
197
+ <Text style={commonStyles.previewHighlightText}>{strings('setup.highlight')}</Text>
198
198
  </TouchableOpacity>
199
199
  </View>
200
200
  :
package/locales/ar.json CHANGED
@@ -116,7 +116,8 @@
116
116
  "north": "شمال",
117
117
  "south": "جنوب",
118
118
  "west": "الغرب",
119
- "est": "شرق"
119
+ "est": "شرق",
120
+ "highlight": "رفع قيمة"
120
121
  },
121
122
  "product": {
122
123
  "LISTING": "قوائم",
package/locales/en.json CHANGED
@@ -116,7 +116,8 @@
116
116
  "north": "North",
117
117
  "south": "South",
118
118
  "west": "West",
119
- "est": "Est"
119
+ "est": "Est",
120
+ "highlight": "Highlight"
120
121
  },
121
122
  "product": {
122
123
  "LISTING": "Listing",
package/locales/es.json CHANGED
@@ -116,7 +116,8 @@
116
116
  "north": "Norte",
117
117
  "south": "Sur",
118
118
  "west": "Oeste",
119
- "est": "Este"
119
+ "est": "Este",
120
+ "highlight": "Destacar"
120
121
  },
121
122
  "product": {
122
123
  "LISTING": "Listing",
package/locales/fr.json CHANGED
@@ -116,7 +116,8 @@
116
116
  "north": "Nord",
117
117
  "south": "South",
118
118
  "west": "Ouest",
119
- "est": "Est"
119
+ "est": "Est",
120
+ "highlight": "Mettre en valeur"
120
121
  },
121
122
  "product": {
122
123
  "LISTING": "Liste",
package/locales/it.json CHANGED
@@ -116,7 +116,8 @@
116
116
  "north": "Nord",
117
117
  "south": "Sud",
118
118
  "west": "Ovest",
119
- "est": "Est"
119
+ "est": "Est",
120
+ "highlight": "Evidenziare"
120
121
  },
121
122
  "product": {
122
123
  "LISTING": "Inserzioni",
package/locales/nl.json CHANGED
@@ -116,7 +116,8 @@
116
116
  "north": "North",
117
117
  "south": "Zuid",
118
118
  "west": "Oost",
119
- "est": "North"
119
+ "est": "North",
120
+ "highlight": "Highlighting"
120
121
  },
121
122
  "product": {
122
123
  "LISTING": "Advertenties",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "4.1.24",
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": "0",
32
+ "muba-payment-online": "4",
33
33
  "muba-popup-advice": "4",
34
34
  "muba-popup-permissions": "4",
35
35
  "muba-radio-button-group": "4"