Apply muted visual for deleted or removed row

Closes #7355
This commit is contained in:
Cédric Krier
2023-01-24 00:41:48 +01:00
parent 9375dcb878
commit ef11936771
+11 -5
View File
@@ -1634,8 +1634,11 @@
}
}
}
apply_visual(
td, this.record.expr_eval(column.attributes.visual));
let visual = this.record.expr_eval(column.attributes.visual);
if (this.record.deleted || this.record.removed) {
visual = 'muted';
}
apply_visual(td, visual);
}
this.update_visible();
}
@@ -1688,13 +1691,16 @@
update_expander();
}
}
apply_visual(
this.el, this.record.expr_eval(this.tree.attributes.visual));
let visual = this.record.expr_eval(this.tree.attributes.visual);
if (this.record.deleted || this.record.removed) {
this.el.css('text-decoration', 'line-through');
if (this.record.deleted) {
this.el.css('text-decoration', 'line-through');
}
visual = 'muted';
} else {
this.el.css('text-decoration', 'inherit');
}
apply_visual(this.el, visual);
},
update_visible: function() {
var thead_visible = this.tree.thead.is(':visible');