Skip to content

Commit

Permalink
fix(form-builder): set initial value of isHidden jexl on options
Browse files Browse the repository at this point in the history
  • Loading branch information
luytena committed Jan 31, 2025
1 parent fe860df commit 1e12609
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class="uk-icon-button"
uk-icon="trash"
title={{t "caluma.form-builder.options.delete"}}
{{on "click" (fn @deleteRow @row)}}
{{on "click" @deleteRow}}
>
</button>
{{else}}
Expand Down Expand Up @@ -46,7 +46,6 @@
@inputName={{concat "option-" (add @i 1) "-label"}}
@required={{true}}
@disabled={{@row.isArchived}}
@submitted={{@submitted}}
@on-update={{@updateLabel}}
/>
</div>
Expand All @@ -56,7 +55,6 @@
@inputName={{concat "option-" (add @i 1) "-slug"}}
@required={{true}}
@disabled={{not (is-empty @row.id)}}
@submitted={{@submitted}}
@renderComponent={{component
"cfb-slug-input"
hidePrefix=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ export default class CfbFormEditorQuestion extends Component {
label: "",
slug: "",
isArchived: false,
isHidden: "false",
slugUnlinked: false,
question: this.model.slug,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default class CfbFormEditorQuestionOptions extends Component {
slug: "",
label: "",
isArchived: false,
isHidden: "false",
slugUnlinked: false,
question: this.args.model.slug,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/addon/mirage-graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3239,7 +3239,7 @@ input SaveOptionInput {
slug: String!
label: String!
isArchived: Boolean
isHidden: Boolean
isHidden: QuestionJexl
meta: JSONString
clientMutationId: String
}
Expand Down

0 comments on commit 1e12609

Please sign in to comment.