update commit message
This commit is contained in:
+10
-6
@@ -104,6 +104,10 @@
|
||||
return list;
|
||||
}
|
||||
|
||||
function hasTarotAccess() {
|
||||
return window.TarotAppConfig?.hasTarotAccess?.() === true;
|
||||
}
|
||||
|
||||
function createAstrologyValue(astrology, context) {
|
||||
const type = toDisplayText(astrology?.type).toLowerCase();
|
||||
const name = toDisplayText(astrology?.name);
|
||||
@@ -150,7 +154,7 @@
|
||||
|
||||
const tarotCard = toDisplayText(pathEntry?.tarot?.card);
|
||||
const tarotTrumpNumber = context.toFiniteNumber(pathEntry?.tarot?.trumpNumber);
|
||||
if (tarotCard || tarotTrumpNumber != null) {
|
||||
if (hasTarotAccess() && (tarotCard || tarotTrumpNumber != null)) {
|
||||
rows.push({
|
||||
label: "Tarot",
|
||||
value: createInlineEventLink(tarotCard || `Trump ${tarotTrumpNumber}`, "nav:tarot-trump", {
|
||||
@@ -223,7 +227,7 @@
|
||||
{ label: "Element", value: createElementValue(center?.element, context) || center?.element }
|
||||
];
|
||||
|
||||
if (centerTarotCard || centerTrumpNo != null) {
|
||||
if (hasTarotAccess() && (centerTarotCard || centerTrumpNo != null)) {
|
||||
summaryRows.push({
|
||||
label: "Tarot",
|
||||
value: createInlineEventLink(centerTarotCard || `Trump ${centerTrumpNo}`, "nav:tarot-trump", {
|
||||
@@ -327,7 +331,7 @@
|
||||
}
|
||||
];
|
||||
|
||||
if (tarotCard || tarotTrumpNumber != null) {
|
||||
if (hasTarotAccess() && (tarotCard || tarotTrumpNumber != null)) {
|
||||
connectorRows.push({
|
||||
label: "Tarot",
|
||||
value: createInlineEventLink(tarotCard || `Trump ${tarotTrumpNumber}`, "nav:tarot-trump", {
|
||||
@@ -428,7 +432,7 @@
|
||||
}
|
||||
];
|
||||
|
||||
if (tarotCard || tarotTrumpNumber != null) {
|
||||
if (hasTarotAccess() && (tarotCard || tarotTrumpNumber != null)) {
|
||||
edgeRows.push({
|
||||
label: "Tarot",
|
||||
value: createInlineEventLink(tarotCard || `Trump ${tarotTrumpNumber}`, "nav:tarot-trump", {
|
||||
@@ -562,7 +566,7 @@
|
||||
} else {
|
||||
const directTarotCard = toDisplayText(wallAssociations?.tarotCard || wall?.tarotCard);
|
||||
const directTrumpNumber = toFiniteNumber(wallAssociations?.tarotTrumpNumber);
|
||||
if (directTarotCard || directTrumpNumber != null) {
|
||||
if (hasTarotAccess() && (directTarotCard || directTrumpNumber != null)) {
|
||||
wallRows.push({
|
||||
label: "Tarot",
|
||||
value: createInlineEventLink(directTarotCard || `Trump ${directTrumpNumber}`, "nav:tarot-trump", {
|
||||
@@ -734,7 +738,7 @@
|
||||
}
|
||||
];
|
||||
|
||||
if (tarotCard || tarotTrumpNumber != null) {
|
||||
if (hasTarotAccess() && (tarotCard || tarotTrumpNumber != null)) {
|
||||
edgeRows.push({
|
||||
label: "Tarot",
|
||||
value: createInlineEventLink(tarotCard || `Trump ${tarotTrumpNumber}`, "nav:tarot-trump", {
|
||||
|
||||
Reference in New Issue
Block a user