Skip to content

Commit

Permalink
Add instructions to DANDI api_key input
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Sep 7, 2023
1 parent 4ca74cc commit ad6f4fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion schemas/json/dandi/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -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. <br/><small><b>Note:</b> <a href='https://dandiarchive.org' target='_blank'>Production</a> and <a href='https://gui-staging.dandiarchive.org' target='_blank'>staging</a> servers have different API keys and different logins</small>"
}
},
"required": ["api_key"]
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/src/stories/JSONSchemaForm.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -424,7 +426,7 @@ export class JSONSchemaForm extends LitElement {
${interactiveInput}
${info.description
? html`<p class="guided--text-input-instructions">
${capitalize(info.description)}${info.description.slice(-1)[0] === "." ? "" : "."}
${unsafeHTML(capitalize(info.description))}${info.description.slice(-1)[0] === "." ? "" : "."}
</p>`
: ""}
<div class="errors"></div>
Expand Down

0 comments on commit ad6f4fc

Please sign in to comment.