Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
1137f1c3 by Cédric Krier at 2023-01-24T00:41:48+01:00
Apply muted visual for deleted or removed row
Closes #7355
- - - - -
1 changed file:
- sao/src/view/tree.js
Changes:
=====================================
sao/src/view/tree.js
=====================================
@@ -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,6 +1691,5 @@
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) {
@@ -1693,5 +1695,8 @@
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');
}
@@ -1695,6 +1700,7 @@
} else {
this.el.css('text-decoration', 'inherit');
}
+ apply_visual(this.el, visual);
},
update_visible: function() {
var thead_visible = this.tree.thead.is(':visible');
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/1137f1c3384020153948a0c2e952452dbef92c1a
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/1137f1c3384020153948a0c2e952452dbef92c1a
You're receiving this email because of your account on foss.heptapod.net.