diff --git a/schemas/json/dandi/global.json b/schemas/json/dandi/global.json index 15ad771c0..c58151ee7 100644 --- a/schemas/json/dandi/global.json +++ b/schemas/json/dandi/global.json @@ -2,7 +2,8 @@ "properties": { "api_key": { "type": "string", - "format": "password" + "format": "password", + "description": "Log in to DANDI, click on your user initials in the top-right corner, and copy your API key from the resulting pop-up.
Note: Production and staging servers have different API keys and different logins" } }, "required": ["api_key"] diff --git a/src/renderer/src/stories/JSONSchemaForm.js b/src/renderer/src/stories/JSONSchemaForm.js index f16987160..0ffdd0fbe 100644 --- a/src/renderer/src/stories/JSONSchemaForm.js +++ b/src/renderer/src/stories/JSONSchemaForm.js @@ -1,4 +1,6 @@ import { LitElement, css, html } from "lit"; +import { unsafeHTML } from "lit/directives/unsafe-html.js"; + import { Accordion } from "./Accordion"; import { checkStatus } from "../validation"; @@ -424,7 +426,7 @@ export class JSONSchemaForm extends LitElement { ${interactiveInput} ${info.description ? html`

- ${capitalize(info.description)}${info.description.slice(-1)[0] === "." ? "" : "."} + ${unsafeHTML(capitalize(info.description))}${info.description.slice(-1)[0] === "." ? "" : "."}

` : ""}