@saooti/octopus-sdk 37.0.40 → 37.0.42
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/package.json
CHANGED
|
@@ -59,7 +59,7 @@ export default defineComponent({
|
|
|
59
59
|
type: Array as () => Array<RubriquageFilter>,
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
|
-
emits: ["updateRubriquageFilter"],
|
|
62
|
+
emits: ["updateRubriquageFilter", "warning"],
|
|
63
63
|
|
|
64
64
|
data() {
|
|
65
65
|
return {
|
|
@@ -257,6 +257,7 @@ export default defineComponent({
|
|
|
257
257
|
});
|
|
258
258
|
this.saveOrganisation = this.organisation;
|
|
259
259
|
if (0 === this.rubriquageData.length) return;
|
|
260
|
+
|
|
260
261
|
if (initArrayFilter && this.rubriquageData[0].rubriquageId) {
|
|
261
262
|
this.arrayFilter.push({
|
|
262
263
|
rubriquageId: this.rubriquageData[0].rubriquageId,
|
|
@@ -264,6 +265,18 @@ export default defineComponent({
|
|
|
264
265
|
nameRubriquage: this.rubriquageData[0].title,
|
|
265
266
|
nameRubrique: "",
|
|
266
267
|
});
|
|
268
|
+
}else{
|
|
269
|
+
const arrayFilterToUpdate = [];
|
|
270
|
+
for(const filter of this.arrayFilter){
|
|
271
|
+
const rubriquageExist = this.rubriquageData.find( (element) => element.rubriquageId === filter.rubriquageId);
|
|
272
|
+
if(rubriquageExist){
|
|
273
|
+
arrayFilterToUpdate.push(filter);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if(arrayFilterToUpdate.length !== this.arrayFilter.length){
|
|
277
|
+
this.arrayFilter = arrayFilterToUpdate;
|
|
278
|
+
}
|
|
279
|
+
this.$emit('warning');
|
|
267
280
|
}
|
|
268
281
|
},
|
|
269
282
|
resetRubriqueFilter(): void {
|