From bdb64eab9d19d8bb07213e08bdf56061c3284f3d Mon Sep 17 00:00:00 2001
From: lowlighter <22963968+lowlighter@users.noreply.github.com>
Date: Fri, 29 Jul 2022 16:26:16 -0400
Subject: [PATCH] fix(docs): expandable json default option value (close #1158)
---
source/app/metrics/metadata.mjs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/source/app/metrics/metadata.mjs b/source/app/metrics/metadata.mjs
index 031f8da0..291fc0b9 100644
--- a/source/app/metrics/metadata.mjs
+++ b/source/app/metrics/metadata.mjs
@@ -475,6 +475,8 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
text = "→ User attached twitter"
if (o.default === ".user.website")
text = "→ User attached website"
+ if (type === "json")
+ text = `→ Click to expand
${text}
`
cell.push(`default: ${text}
`)
}
if ("values" in o)