Remove the folder icon from parent tasks or group level when tasks are grouped
Description
Activity
Show:
Yuriy Harbuziuk 13 June 2024 at 08:55Edited
Note for dev:
in dhxService, we already hide task icon like this
g.templates.grid_file = (item: IDhxTaskModel): string => {
return '';
};
and to hide folder, we can do this
g.templates.grid_folder = (item: IDhxTaskModel): string => {
return '';
};
But under this task we need to do some analysis too: In case some client wants to show folder icon, lets see if customer will be able to do this by adding CSS. I hope such customer requests will not happen, but lets be prepared and post how it can be done here in comments. Maybe grid_folder
actually must return instead of empty string something like “<div class='folder_icon_${(item.$open ? "open" : "closed")}
'></div>“ so we could style it via CSS in case some customer needs folder icon.
.folder_icon_closed {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAfElEQVQ4T2NkoBJgpJI5DCgGTZ8+/T82gzMzMwlaCFcAM0RKQgyrI/0Dg/EahmIQyBB0DRvXr4W78tmLV1gtAbmYoEEgnciG4QpTogzCFyEwSyg2CBS2oCAZNQh3cA+hMAJ5AlcKxuVBlOgnNgVjMwyUrQjmamKLGaoZBAAOTFyLnFFW4wAAAABJRU5ErkJggg==);
}
.folder_icon_open {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAs0lEQVQ4T62T0Q2EIBBEpQlzuaaMsQoqooqLsSljbMLLmMxmUXBR4U+Qt7Mzi2sqLVeJ00SgEMKWAnvvzYLyAyHfT5sU2fXDJSwCAXK8MI0/UTkva7IIFJsg3NSwnKdFoKtAWOQ1CN7CEqeTotE5L7QyJhmBcklZM4ZgTiAr3iOU3kD93ppO5SkMjB1EeXdBWoSkRql3YeIRe+cGvktS056JR9wsmeBUkujCfNXWCPC8GugPqn5ii/hV+FoAAAAASUVORK5CYII=);
}
Currently, a user has to insert a custom CSS into User settings to remove the folder icon.
.gantt_tree_icon.gantt_folder_open, .gantt_tree_icon.gantt_folder_closed { display: none; }
As per team decision, the folder icon will be removed for good.
Important: this has to be done on branch v5 as it will be released before the v6 (master) .