Skip to content

Commit

Permalink
Removing password element from plugin form
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Nov 6, 2023
1 parent aa34c76 commit 7223bb8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/dispatch/static/dispatch/src/plugin/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,7 @@ function convertToFormkit(json_schema) {
formkit_schema.push(title)
for (const [key, value] of Object.entries(json_schema.properties)) {
var obj = {}
if (value.format == "password") {
obj = {
$formkit: "password",
name: key,
label: value.title,
help: value.description,
validation: "required",
}
} else if (value.type == "string") {
if (value.type == "string" || value.type == "password") {
obj = {
$formkit: "text",
name: key,
Expand Down

0 comments on commit 7223bb8

Please sign in to comment.