Skip to content

Commit

Permalink
Use a <textarea> for string attributes (#172)
Browse files Browse the repository at this point in the history
This allows the use of line break if attributes of type string.

closes #159
  • Loading branch information
crazyscientist authored Nov 22, 2023
1 parent 6cf4819 commit 6fd57ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/inputs/EntityForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
import _cloneDeep from "lodash/cloneDeep";
import _isEqual from "lodash/isEqual";
import TextareaInput from "@/components/inputs/TextareaInput.vue";
import TextInput from "@/components/inputs/TextInput";
import Checkbox from "@/components/inputs/Checkbox";
import DateTime from "@/components/inputs/DateTime";
Expand All @@ -95,7 +96,7 @@ export default {
name: "EntityForm",
components: {
Spinner, TextInput, Checkbox, DateTime, DateInput, IntegerInput, FloatInput,
ReferencedEntitySelect
ReferencedEntitySelect, TextareaInput
},
props: {
schema: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ATTR_TYPES_NAMES = {


export const TYPE_INPUT_MAP = {
STR: "TextInput",
STR: "TextareaInput",
DT: "DateTime",
INT: "IntegerInput",
FLOAT: "FloatInput",
Expand Down

0 comments on commit 6fd57ea

Please sign in to comment.