|
|
@@ -262,6 +262,16 @@ export default defineComponent({
|
|
|
const current_id = this.creneauGroupList.map((o) => o.id);
|
|
|
const same_order = current_id.reduce((acc, id, idx) => acc && id == ids[idx], true);
|
|
|
if (!same_order) this.commit(MutationTypes.reorderCreneauGroup, ids);
|
|
|
+ for (let ressource of ev.detail.ressources) {
|
|
|
+ const creneauGroup = this.$store.getters.getCreneauGroupById(ressource.id);
|
|
|
+ if (creneauGroup && ressource.parentId != creneauGroup.parentId) {
|
|
|
+ this.commit(MutationTypes.editCreneauGroup, {
|
|
|
+ id: ressource.id,
|
|
|
+ field: "parent",
|
|
|
+ value: ressource.parent,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
updateCreneauGroup<K extends keyof Ressource>(payload: {
|
|
|
id: string;
|