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 // ACL for the visual console
// $vconsole_read = check_acl ($config['id_user'], $group_id, "VR"); // $vconsole_read = check_acl ($config['id_user'], $group_id, "VR");
$vconsole_write = check_acl_restricted_all($config['id_user'], $group_id, 'VW'); $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'); $vconsole_manage = check_acl_restricted_all($config['id_user'], $group_id, 'VM', true);
if (!$vconsole_write && !$vconsole_manage) { if (!$vconsole_write && !$vconsole_manage) {
db_pandora_audit( db_pandora_audit(

View File

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