@pelcro/react-pelcro-js 3.12.0-beta.2 → 3.12.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +10 -2
- package/dist/index.esm.js +10 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9610,7 +9610,11 @@ const authenticatedButtons = () => {
|
|
|
9610
9610
|
|
|
9611
9611
|
if (pelcroLoginByClass) {
|
|
9612
9612
|
for (let i = 0; i < pelcroLoginByClass.length; i++) {
|
|
9613
|
-
pelcroLoginByClass.item(i).
|
|
9613
|
+
if (pelcroLoginByClass.item(i).hasAttribute("data-dashboard-text")) {
|
|
9614
|
+
pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-dashboard-text");
|
|
9615
|
+
} else {
|
|
9616
|
+
pelcroLoginByClass.item(i).innerHTML = translations.account;
|
|
9617
|
+
}
|
|
9614
9618
|
}
|
|
9615
9619
|
}
|
|
9616
9620
|
|
|
@@ -9630,7 +9634,11 @@ const unauthenticatedButtons = () => {
|
|
|
9630
9634
|
|
|
9631
9635
|
if (pelcroLoginByClass) {
|
|
9632
9636
|
for (let i = 0; i < pelcroLoginByClass.length; i++) {
|
|
9633
|
-
pelcroLoginByClass.item(i).
|
|
9637
|
+
if (pelcroLoginByClass.item(i).hasAttribute("data-login-text")) {
|
|
9638
|
+
pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-login-text");
|
|
9639
|
+
} else {
|
|
9640
|
+
pelcroLoginByClass.item(i).innerHTML = translations.login;
|
|
9641
|
+
}
|
|
9634
9642
|
}
|
|
9635
9643
|
}
|
|
9636
9644
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -9580,7 +9580,11 @@ const authenticatedButtons = () => {
|
|
|
9580
9580
|
|
|
9581
9581
|
if (pelcroLoginByClass) {
|
|
9582
9582
|
for (let i = 0; i < pelcroLoginByClass.length; i++) {
|
|
9583
|
-
pelcroLoginByClass.item(i).
|
|
9583
|
+
if (pelcroLoginByClass.item(i).hasAttribute("data-dashboard-text")) {
|
|
9584
|
+
pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-dashboard-text");
|
|
9585
|
+
} else {
|
|
9586
|
+
pelcroLoginByClass.item(i).innerHTML = translations.account;
|
|
9587
|
+
}
|
|
9584
9588
|
}
|
|
9585
9589
|
}
|
|
9586
9590
|
|
|
@@ -9600,7 +9604,11 @@ const unauthenticatedButtons = () => {
|
|
|
9600
9604
|
|
|
9601
9605
|
if (pelcroLoginByClass) {
|
|
9602
9606
|
for (let i = 0; i < pelcroLoginByClass.length; i++) {
|
|
9603
|
-
pelcroLoginByClass.item(i).
|
|
9607
|
+
if (pelcroLoginByClass.item(i).hasAttribute("data-login-text")) {
|
|
9608
|
+
pelcroLoginByClass.item(i).innerHTML = pelcroLoginByClass.item(i).getAttribute("data-login-text");
|
|
9609
|
+
} else {
|
|
9610
|
+
pelcroLoginByClass.item(i).innerHTML = translations.login;
|
|
9611
|
+
}
|
|
9604
9612
|
}
|
|
9605
9613
|
}
|
|
9606
9614
|
};
|