Skip to content

Commit

Permalink
Removing password element from plugin form (#3945)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Nov 7, 2023
1 parent aa34c76 commit a2b7940
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 a2b7940

Please sign in to comment.