Merge branch 'ent-11526-bugs-en-consolas-visuales' into 'develop'

Ent 11526 Bugs en consolas visuales

See merge request artica/pandorafms!6071
This commit is contained in:
Matias Didier 2023-06-12 12:13:06 +00:00
commit a70a6fc060
5 changed files with 14 additions and 10 deletions

View File

@ -168,8 +168,8 @@ if ($delete_layout || $copy_layout) {
// ACL for the visual console
// $vconsole_read = check_acl ($config['id_user'], $group_id, "VR");
$vconsole_write = check_acl_restricted_all($config['id_user'], $group_id, 'VW');
$vconsole_manage = check_acl_restricted_all($config['id_user'], $group_id, 'VM');
$vconsole_write = check_acl_restricted_all($config['id_user'], $group_id, 'VW', true);
$vconsole_manage = check_acl_restricted_all($config['id_user'], $group_id, 'VM', true);
if (!$vconsole_write && !$vconsole_manage) {
db_pandora_audit(

View File

@ -1610,3 +1610,7 @@ a.pandora_pagination,
.font-title-font {
color: #fff;
}
#visual-console-container a p {
color: #3f3f3f;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -105,8 +105,8 @@ export default class Percentile extends Item<PercentileProps> {
protected createDomElement(): HTMLElement {
const colors = {
background: "#000000",
progress: this.props.color || "#F0F0F0",
text: this.props.labelColor || "#444444"
progress: this.props.color || "#000000",
text: this.props.labelColor || "#bcbcbc"
};
// Progress.
const progress = this.getProgress();
@ -148,10 +148,10 @@ export default class Percentile extends Item<PercentileProps> {
text.setAttribute("font-size", "15");
text.setAttribute("font-family", "lato");
text.setAttribute("font-weight", "bold");
text.setAttribute(
"transform",
`translate(${this.props.width / 2}, 17.5)`
);
text.setAttribute("text-anchor", `middle`);
text.setAttribute("alignment-baseline", `middle`);
text.setAttribute("x", `50%`);
text.setAttribute("y", `50%`);
text.setAttribute("fill", colors.text);
if (this.props.valueType === "value") {