Browse Source

Validation added to property screens

master
George Williams 5 years ago
parent
commit
1a2470d1d9

+ 70
- 5
src/components/property/propertyCreate.vue View File

46
                     class="form-control"
46
                     class="form-control"
47
                     name="propertyUsageType"
47
                     name="propertyUsageType"
48
                     id="propertyUsageType"
48
                     id="propertyUsageType"
49
-                    v-model="property.propertyUsageType"
49
+                    v-model="propertyType"
50
                     @change="TypeChanged"
50
                     @change="TypeChanged"
51
                   >
51
                   >
52
                     <option value="Residential">Residential</option>
52
                     <option value="Residential">Residential</option>
55
                 </div>
55
                 </div>
56
               </div>
56
               </div>
57
             </div>
57
             </div>
58
+            <br />
58
             <div class="form-group row">
59
             <div class="form-group row">
59
               <div class="col-md-4">
60
               <div class="col-md-4">
60
-                <label>Property Type</label>
61
+                <label>Property Type *</label>
61
                 <div class="input-group-prepend">
62
                 <div class="input-group-prepend">
62
                   <span class="input-group-text" style="color: #60CBEB">
63
                   <span class="input-group-text" style="color: #60CBEB">
63
                     <b>T</b>
64
                     <b>T</b>
67
                     name="propertyType"
68
                     name="propertyType"
68
                     id="propertyType"
69
                     id="propertyType"
69
                     v-model="property.propertyTypeId"
70
                     v-model="property.propertyTypeId"
71
+                    @change="PropertyTypeSelected"
70
                   >
72
                   >
71
                     <option value="0">Please select type</option>
73
                     <option value="0">Please select type</option>
72
                     <option v-for="item in propertyTypes" :value="item.id" :key="item.id">{{
74
                     <option v-for="item in propertyTypes" :value="item.id" :key="item.id">{{
74
                     }}</option>
76
                     }}</option>
75
                   </select>
77
                   </select>
76
                 </div>
78
                 </div>
79
+                <div v-if="showPropertyTypeError">
80
+                  <p class="alert myError">Please select a type</p>
81
+                </div>
77
               </div>
82
               </div>
78
               <div v-if="propertyType === 'Commercial'" class="col-md-4">
83
               <div v-if="propertyType === 'Commercial'" class="col-md-4">
79
                 <label>Property Name</label>
84
                 <label>Property Name</label>
137
                 </div>
142
                 </div>
138
               </div>
143
               </div>
139
               <div class="col-md-6" style="margin-bottom: 1em">
144
               <div class="col-md-6" style="margin-bottom: 1em">
140
-                <label>Province</label>
145
+                <label>Province *</label>
141
                 <div class="input-group-prepend">
146
                 <div class="input-group-prepend">
142
                   <span class="input-group-text">
147
                   <span class="input-group-text">
143
                     <eva-icon name="home-outline" fill="#60CBEB"></eva-icon>
148
                     <eva-icon name="home-outline" fill="#60CBEB"></eva-icon>
155
                     }}</option>
160
                     }}</option>
156
                   </select>
161
                   </select>
157
                 </div>
162
                 </div>
163
+                <div v-if="showProvinceError">
164
+                  <p class="alert myError">Please select a Province</p>
165
+                </div>
158
               </div>
166
               </div>
159
 
167
 
160
               <div class="col-md-6" style="margin-bottom: 1em">
168
               <div class="col-md-6" style="margin-bottom: 1em">
161
-                <label>City</label>
169
+                <label>City *</label>
162
                 <div class="input-group-prepend">
170
                 <div class="input-group-prepend">
163
                   <span class="input-group-text">
171
                   <span class="input-group-text">
164
                     <eva-icon name="home-outline" fill="#60CBEB"></eva-icon>
172
                     <eva-icon name="home-outline" fill="#60CBEB"></eva-icon>
176
                     }}</option>
184
                     }}</option>
177
                   </select>
185
                   </select>
178
                 </div>
186
                 </div>
187
+                <div v-if="showCityError">
188
+                  <p class="alert myError">Please select a City</p>
189
+                </div>
179
               </div>
190
               </div>
180
               <div class="col-md-6" style="margin-bottom: 1em">
191
               <div class="col-md-6" style="margin-bottom: 1em">
181
-                <label>Suburb</label>
192
+                <label>Suburb *</label>
182
                 <div class="input-group-prepend">
193
                 <div class="input-group-prepend">
183
                   <span class="input-group-text">
194
                   <span class="input-group-text">
184
                     <eva-icon name="home-outline" fill="#60CBEB"></eva-icon>
195
                     <eva-icon name="home-outline" fill="#60CBEB"></eva-icon>
196
                     }}</option>
207
                     }}</option>
197
                   </select>
208
                   </select>
198
                 </div>
209
                 </div>
210
+                <div v-if="showSuburbError">
211
+                  <p class="alert myError">Please select a Suburb</p>
212
+                </div>
199
               </div>
213
               </div>
200
               <div class="col-md-6" style="margin-bottom: 1em">
214
               <div class="col-md-6" style="margin-bottom: 1em">
201
                 <label>Postal Code</label>
215
                 <label>Postal Code</label>
346
             >
360
             >
347
               Save
361
               Save
348
             </button>
362
             </button>
363
+            <div
364
+              v-if="showPropertyTypeError || showProvinceError || showCityError || showSuburbError"
365
+            >
366
+              <p class="alert myError">
367
+                Missing fields. Please fill in all required fields. Marked with *
368
+              </p>
369
+            </div>
349
             <div v-if="wait" id="preloader"></div>
370
             <div v-if="wait" id="preloader"></div>
350
           </form>
371
           </form>
351
         </div>
372
         </div>
386
         [{ indent: '-1' }, { indent: '+1' }],
407
         [{ indent: '-1' }, { indent: '+1' }],
387
       ],
408
       ],
388
       error: '',
409
       error: '',
410
+      showPropertyTypeError: false,
411
+      showProvinceError: false,
412
+      showCityError: false,
413
+      showSuburbError: false,
389
     };
414
     };
390
   },
415
   },
391
   methods: {
416
   methods: {
408
       this.propertyType = this.property.propertyUsageType;
433
       this.propertyType = this.property.propertyUsageType;
409
     },
434
     },
410
     SubmitData() {
435
     SubmitData() {
436
+      if (this.property.propertyTypeId === 0) {
437
+        this.showPropertyTypeError = true;
438
+      }
439
+      if (this.property.provinceId === 0) {
440
+        this.showProvinceError = true;
441
+      }
442
+      if (this.property.cityId === 0) {
443
+        this.showCityError = true;
444
+      }
445
+      if (this.property.suburbId === 0) {
446
+        this.showSuburbError = true;
447
+      }
448
+
449
+      if (
450
+        this.showPropertyTypeError
451
+        || this.showProvinceError
452
+        || this.showCityError
453
+        || this.showSuburbError
454
+      ) {
455
+        return;
456
+      }
457
+
411
       this.wait = true;
458
       this.wait = true;
412
       if (this.salesType === 'Sale') {
459
       if (this.salesType === 'Sale') {
413
         this.property.isSale = true;
460
         this.property.isSale = true;
440
     Close() {
487
     Close() {
441
       this.$router.push('/property/admin/list/my');
488
       this.$router.push('/property/admin/list/my');
442
     },
489
     },
490
+    PropertyTypeSelected(item) {
491
+      if (item.target.options.selectedIndex > 0) {
492
+        this.showPropertyTypeError = false;
493
+      } else {
494
+        this.showPropertyTypeError = true;
495
+      }
496
+    },
443
     ProvinceSelected(item) {
497
     ProvinceSelected(item) {
444
       if (item.target.options.selectedIndex > 0) {
498
       if (item.target.options.selectedIndex > 0) {
445
         this.selectedProvince = this.provinces[item.target.options.selectedIndex - 1].description;
499
         this.selectedProvince = this.provinces[item.target.options.selectedIndex - 1].description;
446
         this.getCities(Object.assign({}, { province: this.selectedProvince }));
500
         this.getCities(Object.assign({}, { province: this.selectedProvince }));
501
+        this.showProvinceError = false;
502
+      } else {
503
+        this.showProvinceError = true;
447
       }
504
       }
448
     },
505
     },
449
     CitySelected(item) {
506
     CitySelected(item) {
452
         this.getSuburbs(
509
         this.getSuburbs(
453
           Object.assign({}, { province: this.selectedProvince, city: this.selectedCity }),
510
           Object.assign({}, { province: this.selectedProvince, city: this.selectedCity }),
454
         );
511
         );
512
+        this.showCityError = false;
513
+      } else {
514
+        this.showCityError = true;
455
       }
515
       }
456
     },
516
     },
457
     getPostalCode(item) {
517
     getPostalCode(item) {
458
       this.property.addressLine3 = this.suburbs[item.target.options.selectedIndex - 1].postalCode;
518
       this.property.addressLine3 = this.suburbs[item.target.options.selectedIndex - 1].postalCode;
519
+      if (item.target.options.selectedIndex > 0) {
520
+        this.showSuburbError = false;
521
+      } else {
522
+        this.showSuburbError = true;
523
+      }
459
     },
524
     },
460
     loadedImages(values) {
525
     loadedImages(values) {
461
       this.images = values;
526
       this.images = values;

+ 89
- 40
src/components/property/propertyeditPage.vue View File

53
                 </div>
53
                 </div>
54
               </div>
54
               </div>
55
             </div>
55
             </div>
56
+            <br />
56
             <div class="form-group row">
57
             <div class="form-group row">
57
               <div class="col-md-4">
58
               <div class="col-md-4">
58
                 <label>Sale Type</label>
59
                 <label>Sale Type</label>
64
                   :mayEdit="mayEdit"
65
                   :mayEdit="mayEdit"
65
                   @UpdateValue="UpdateValue"
66
                   @UpdateValue="UpdateValue"
66
                 />
67
                 />
68
+                <div v-if="showPropertyTypeError">
69
+                  <p class="alert myError">Please select a Sales Type</p>
70
+                </div>
67
               </div>
71
               </div>
68
             </div>
72
             </div>
69
             <div class="form-group row">
73
             <div class="form-group row">
70
               <div class="col-md-4">
74
               <div class="col-md-4">
71
-                <label>Property Type</label>
75
+                <label>Property Type *</label>
72
                 <propField
76
                 <propField
73
                   :display="property.propertyType ? property.propertyType.description : ''"
77
                   :display="property.propertyType ? property.propertyType.description : ''"
74
                   :editType="'selector'"
78
                   :editType="'selector'"
122
                 />
126
                 />
123
               </div>
127
               </div>
124
               <div class="col-md-6" style="margin-bottom: 1em">
128
               <div class="col-md-6" style="margin-bottom: 1em">
125
-                <label>Province</label>
129
+                <label>Province *</label>
126
                 <propField
130
                 <propField
127
                   :display="property.province ? property.province.description : ''"
131
                   :display="property.province ? property.province.description : ''"
128
                   :editType="'selector'"
132
                   :editType="'selector'"
131
                   :mayEdit="mayEdit"
135
                   :mayEdit="mayEdit"
132
                   @UpdateValue="UpdateValue"
136
                   @UpdateValue="UpdateValue"
133
                 />
137
                 />
138
+                <div v-if="showProvinceError">
139
+                  <p class="alert myError">Please select a Province</p>
140
+                </div>
134
               </div>
141
               </div>
135
-
136
               <div class="col-md-6" style="margin-bottom: 1em">
142
               <div class="col-md-6" style="margin-bottom: 1em">
137
-                <label>City</label>
143
+                <label>City *</label>
138
                 <propField
144
                 <propField
139
                   :display="property.city ? property.city.description : ''"
145
                   :display="property.city ? property.city.description : ''"
140
                   :editType="'selector'"
146
                   :editType="'selector'"
143
                   :mayEdit="mayEdit"
149
                   :mayEdit="mayEdit"
144
                   @UpdateValue="UpdateValue"
150
                   @UpdateValue="UpdateValue"
145
                 />
151
                 />
152
+                <div v-if="showCityError">
153
+                  <p class="alert myError">Please select a City</p>
154
+                </div>
146
               </div>
155
               </div>
147
               <div class="col-md-6" style="margin-bottom: 1em">
156
               <div class="col-md-6" style="margin-bottom: 1em">
148
-                <label>Suburb</label>
157
+                <label>Suburb * </label>
149
                 <propField
158
                 <propField
150
                   :display="property.suburb ? property.suburb.description : ''"
159
                   :display="property.suburb ? property.suburb.description : ''"
151
                   :editType="'selector'"
160
                   :editType="'selector'"
154
                   :mayEdit="mayEdit"
163
                   :mayEdit="mayEdit"
155
                   @UpdateValue="UpdateValue"
164
                   @UpdateValue="UpdateValue"
156
                 />
165
                 />
166
+                <div v-if="showSuburbError">
167
+                  <p class="alert myError">Please select a suburb</p>
168
+                </div>
157
               </div>
169
               </div>
158
               <div class="col-md-6" style="margin-bottom: 1em">
170
               <div class="col-md-6" style="margin-bottom: 1em">
159
                 <label>Postal Code</label>
171
                 <label>Postal Code</label>
196
                 <label for="Property Description">Description</label>
208
                 <label for="Property Description">Description</label>
197
                 <vue-editor v-model="property.description" :editor-toolbar="customToolbar" />
209
                 <vue-editor v-model="property.description" :editor-toolbar="customToolbar" />
198
                 <br />
210
                 <br />
199
-                <p>* A listing fee of R380 including VAT is payable to list your Property on the Uni-Vate website</p>
211
+                <p>
212
+                  * A listing fee of R380 including VAT is payable to list your Property on the
213
+                  Uni-Vate website
214
+                </p>
200
               </div>
215
               </div>
201
             </div>
216
             </div>
202
             <div class="form-group row" />
217
             <div class="form-group row" />
203
             <div
218
             <div
204
               class="col-md-6"
219
               class="col-md-6"
205
-              v-if="propertyType === 'Residential' & propertyOverviewFields.length > 0"
220
+              v-if="(propertyType === 'Residential') & (propertyOverviewFields.length > 0)"
206
             >
221
             >
207
               <div v-for="(item, i) in propertyOverviewFields[0].fields" :key="item.id">
222
               <div v-for="(item, i) in propertyOverviewFields[0].fields" :key="item.id">
208
                 <label>{{ item.name }}</label>
223
                 <label>{{ item.name }}</label>
243
                   @UpdateValue="UpdateValue"
258
                   @UpdateValue="UpdateValue"
244
                 />
259
                 />
245
               </div>
260
               </div>
261
+              <br />
246
             </div>
262
             </div>
247
             <div class="form-group row" />
263
             <div class="form-group row" />
248
             <div class="row">
264
             <div class="row">
321
               class="btn btn-b-n"
337
               class="btn btn-b-n"
322
               style="width: 85px; height:40px;"
338
               style="width: 85px; height:40px;"
323
               :disabled="!mayEdit"
339
               :disabled="!mayEdit"
324
-            >Save</button>
340
+            >
341
+              Save
342
+            </button>
325
             <button
343
             <button
326
               type="button"
344
               type="button"
327
               @click="Close()"
345
               @click="Close()"
328
               class="btn btn-b-n"
346
               class="btn btn-b-n"
329
               style="width: 85px; height:40px;"
347
               style="width: 85px; height:40px;"
330
-            >Close</button>
348
+              :disabled="
349
+                showPropertyTypeError || showProvinceError || showCityError || showSuburbError
350
+              "
351
+            >
352
+              Close
353
+            </button>
354
+            <div
355
+              v-if="showPropertyTypeError || showProvinceError || showCityError || showSuburbError"
356
+            >
357
+              <p class="alert myError">
358
+                Missing fields. Please fill in all required fields. Marked with *
359
+              </p>
360
+            </div>
331
             <div v-if="wait" id="preloader"></div>
361
             <div v-if="wait" id="preloader"></div>
332
           </form>
362
           </form>
333
         </div>
363
         </div>
339
 <script>
369
 <script>
340
 import { mapState, mapActions } from 'vuex';
370
 import { mapState, mapActions } from 'vuex';
341
 import { VueEditor } from 'vue2-editor';
371
 import { VueEditor } from 'vue2-editor';
342
-import { setTimeout } from 'timers';
343
 import ImageLoad from './propertyImage.vue';
372
 import ImageLoad from './propertyImage.vue';
344
 import propField from './propertyFieldEditor.vue';
373
 import propField from './propertyFieldEditor.vue';
345
 
374
 
361
       customToolbar: [
390
       customToolbar: [
362
         [{ header: [false, 1, 2, 3, 4, 5, 6] }],
391
         [{ header: [false, 1, 2, 3, 4, 5, 6] }],
363
         ['bold', 'italic', 'underline', 'strike'],
392
         ['bold', 'italic', 'underline', 'strike'],
364
-        [
365
-          { align: '' },
366
-          { align: 'center' },
367
-          { align: 'right' },
368
-          { align: 'justify' },
369
-        ],
393
+        [{ align: '' }, { align: 'center' }, { align: 'right' }, { align: 'justify' }],
370
         [{ list: 'ordered' }, { list: 'bullet' }, { list: 'check' }],
394
         [{ list: 'ordered' }, { list: 'bullet' }, { list: 'check' }],
371
         [{ script: 'sub' }, { script: 'super' }],
395
         [{ script: 'sub' }, { script: 'super' }],
372
         [{ indent: '-1' }, { indent: '+1' }],
396
         [{ indent: '-1' }, { indent: '+1' }],
379
         { id: 'Month', description: 'Month' },
403
         { id: 'Month', description: 'Month' },
380
         { id: 'Day', description: 'Day' },
404
         { id: 'Day', description: 'Day' },
381
       ],
405
       ],
406
+      showPropertyTypeError: false,
407
+      showProvinceError: false,
408
+      showCityError: false,
409
+      showSuburbError: false,
382
     };
410
     };
383
   },
411
   },
384
   methods: {
412
   methods: {
389
       'getListsForPropertyEdit',
417
       'getListsForPropertyEdit',
390
     ]),
418
     ]),
391
     ...mapActions('property', ['getPropertyTypes']),
419
     ...mapActions('property', ['getPropertyTypes']),
392
-    ...mapActions('propertyEdit', [
393
-      'getSavedPropertyData',
394
-      'updateProperty',
395
-      'mayEditProperty',
396
-    ]),
420
+    ...mapActions('propertyEdit', ['getSavedPropertyData', 'updateProperty', 'mayEditProperty']),
397
     UpdateValue(item) {
421
     UpdateValue(item) {
398
       if (item.isUDF) {
422
       if (item.isUDF) {
399
         if (item.isPropOverview) {
423
         if (item.isPropOverview) {
400
-          this.propertyOverviewFields[0].fields[item.arrayIndex].value =            item.value;
424
+          this.propertyOverviewFields[0].fields[item.arrayIndex].value = item.value;
401
         } else if (item.isPropOverview === false) {
425
         } else if (item.isPropOverview === false) {
402
-          this.propertyFields[item.arrayIndex].fields[
403
-            item.arrayItemIndex
404
-          ].value = item.value;
426
+          this.propertyFields[item.arrayIndex].fields[item.arrayItemIndex].value = item.value;
405
         }
427
         }
406
       } else if (!item.isUDF) {
428
       } else if (!item.isUDF) {
407
         if (item.fieldName) {
429
         if (item.fieldName) {
413
             this.property.isSale = isSaleValue;
435
             this.property.isSale = isSaleValue;
414
           }
436
           }
415
           if (item.fieldName === 'propertyType') {
437
           if (item.fieldName === 'propertyType') {
416
-            this.property.propertyType = this.propertyTypes.find(
417
-              pt => pt.description === item.value,
418
-            );
419
-            this.property.propertyTypeId = this.property.propertyType.id;
438
+            if (item.value !== '') {
439
+              this.property.propertyType = this.propertyTypes.find(
440
+                pt => pt.description === item.value,
441
+              );
442
+              this.property.propertyTypeId = this.property.propertyType.id;
443
+              this.showPropertyTypeError = false;
444
+            } else {
445
+              this.showPropertyTypeError = true;
446
+            }
420
           }
447
           }
421
           if (item.fieldName === 'propertyName') {
448
           if (item.fieldName === 'propertyName') {
422
             this.property.propertyName = item.value;
449
             this.property.propertyName = item.value;
435
           }
462
           }
436
           if (item.fieldName === 'province') {
463
           if (item.fieldName === 'province') {
437
             if (item.value !== '') {
464
             if (item.value !== '') {
438
-              this.property.province = this.provinces.find(
439
-                p => p.description === item.value,
440
-              );
465
+              this.property.province = this.provinces.find(p => p.description === item.value);
441
               this.property.provinceId = this.property.province.id;
466
               this.property.provinceId = this.property.province.id;
442
               this.getCities(Object.assign({}, { province: item.value }));
467
               this.getCities(Object.assign({}, { province: item.value }));
443
               this.property.city = null;
468
               this.property.city = null;
444
               this.property.suburb = null;
469
               this.property.suburb = null;
445
               this.property.addressLine3 = '';
470
               this.property.addressLine3 = '';
471
+              this.showProvinceError = false;
472
+              this.showCityError = true;
473
+              this.showSuburbError = true;
446
             } else {
474
             } else {
447
               this.property.province = null;
475
               this.property.province = null;
448
               this.property.city = null;
476
               this.property.city = null;
450
               this.property.addressLine3 = '';
478
               this.property.addressLine3 = '';
451
               this.cities = [];
479
               this.cities = [];
452
               this.suburbs = [];
480
               this.suburbs = [];
481
+              this.showProvinceError = true;
453
             }
482
             }
454
           }
483
           }
455
           if (item.fieldName === 'city') {
484
           if (item.fieldName === 'city') {
456
             if (item.value !== '') {
485
             if (item.value !== '') {
457
-              const newCity = this.cities.find(
458
-                p => p.description === item.value,
459
-              );
486
+              const newCity = this.cities.find(p => p.description === item.value);
460
               this.property.city = newCity;
487
               this.property.city = newCity;
461
               this.property.cityId = newCity.id;
488
               this.property.cityId = newCity.id;
462
               this.getSuburbs(
489
               this.getSuburbs(
470
               );
497
               );
471
               this.property.suburb = null;
498
               this.property.suburb = null;
472
               this.property.addressLine3 = '';
499
               this.property.addressLine3 = '';
500
+              this.showCityError = false;
501
+              this.showSuburbError = true;
473
             } else {
502
             } else {
474
               this.property.city = null;
503
               this.property.city = null;
475
               this.property.suburb = null;
504
               this.property.suburb = null;
476
               this.property.addressLine3 = '';
505
               this.property.addressLine3 = '';
477
               this.suburbs = [];
506
               this.suburbs = [];
507
+              this.showCityError = true;
478
             }
508
             }
479
           }
509
           }
480
           if (item.fieldName === 'suburb') {
510
           if (item.fieldName === 'suburb') {
481
             if (item.value !== '') {
511
             if (item.value !== '') {
482
-              const newSuburb = this.suburbs.find(
483
-                p => p.description === item.value,
484
-              );
512
+              const newSuburb = this.suburbs.find(p => p.description === item.value);
485
               this.property.suburb = newSuburb;
513
               this.property.suburb = newSuburb;
486
               this.property.suburbId = newSuburb.id;
514
               this.property.suburbId = newSuburb.id;
487
               this.property.addressLine3 = this.property.suburb.postalCode;
515
               this.property.addressLine3 = this.property.suburb.postalCode;
516
+              this.showSuburbError = false;
488
             } else {
517
             } else {
489
               this.property.suburb = null;
518
               this.property.suburb = null;
490
               this.property.addressLine3 = '';
519
               this.property.addressLine3 = '';
520
+              this.showSuburbError = true;
491
             }
521
             }
492
           }
522
           }
493
           if (item.fieldName === 'price') {
523
           if (item.fieldName === 'price') {
509
       this.propertyType = this.property.propertyUsageType;
539
       this.propertyType = this.property.propertyUsageType;
510
     },
540
     },
511
     SubmitData() {
541
     SubmitData() {
512
-      this.wait = true;
542
+      if (this.property.propertyTypeId === 0) {
543
+        this.showPropertyTypeError = true;
544
+      }
545
+      if (this.property.province === null) {
546
+        this.showProvinceError = true;
547
+      }
548
+      if (this.property.city === null) {
549
+        this.showCityError = true;
550
+      }
551
+      if (this.property.suburb === null) {
552
+        this.showSuburbError = true;
553
+      }
513
 
554
 
555
+      if (
556
+        this.showPropertyTypeError
557
+        || this.showProvinceError
558
+        || this.showCityError
559
+        || this.showSuburbError
560
+      ) {
561
+        return;
562
+      }
563
+      this.wait = true;
514
       this.newPropertyImages.propertyId = this.property.id;
564
       this.newPropertyImages.propertyId = this.property.id;
515
       this.newPropertyImages.Images = [];
565
       this.newPropertyImages.Images = [];
516
       // eslint-disable-next-line no-plusplus
566
       // eslint-disable-next-line no-plusplus
524
           isDefault: setAsDefault,
574
           isDefault: setAsDefault,
525
         });
575
         });
526
       }
576
       }
527
-
528
       this.property.propertyImages = this.propertyImages;
577
       this.property.propertyImages = this.propertyImages;
529
       // eslint-disable-next-line no-plusplus
578
       // eslint-disable-next-line no-plusplus
530
       for (let i = 0; i < this.property.propertyImages.length; i++) {
579
       for (let i = 0; i < this.property.propertyImages.length; i++) {

Loading…
Cancel
Save