Skip to content

Commit

Permalink
set dirty to provided state instead of hardcoded true
Browse files Browse the repository at this point in the history
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@uni-tuebingen.de>
  • Loading branch information
v1r0x committed Feb 3, 2025
1 parent 19d5dcb commit d6f15fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions resources/js/components/AttributeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@
return values;
};
const updateDirtyState = e => {
console.trace('updateDirtyState');
state.changeTracker.local[e.attribute_id] = true;
// state.changeTracker.local[e.attribute_id] = true;
state.changeTracker.local[e.attribute_id] = e.dirty;
// Do not update dirty state if attribute is currently in moderation edit mode
if(state.attributeValues[e.attribute_id].moderation_edit_state == 'active') {
return;
Expand Down Expand Up @@ -496,7 +496,6 @@
for(let k in changes) {
if(attrRefs.value[k]) {
// Broadcast changes to Attribute component...
console.log(changes[k]);
state.attributeValues[k].value = changes[k].value;
attrRefs.value[k].handleExternalChange(changes[k]);
// ... but also display info
Expand Down

0 comments on commit d6f15fc

Please sign in to comment.