Skip to content

Commit

Permalink
lmb-181: fix the things that where broken bcs of the rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVanHoof committed Jan 23, 2025
1 parent 493ce29 commit 95c46fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
1 change: 1 addition & 0 deletions app/components/editable-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
@onCloseModal={{this.onCloseEditModal}}
@form={{this.currentForm}}
@field={{@field}}
@showModal={{this.showEditModal}}
/>
{{/if}}
{{/if}}
Expand Down
39 changes: 10 additions & 29 deletions app/components/rdf-input-fields/crud-custom-field-modal.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<AuModal
@modalOpen={{true}}
@modalOpen={{@showModal}}
@closeModal={{this.closeModal}}
@closable={{true}}
@title={{this.title}}
Expand Down Expand Up @@ -71,34 +71,15 @@
{{selected.label}}
</PowerSelect>
</AuFormRow>
<AuFormRow class="au-form-row-full-width">
<AuLabel @required={{true}} for="display-type">Type</AuLabel>
<PowerSelect
@allowClear={{false}}
@disabled={{not this.canSelectTypeForEntry}}
@renderInPlace={{false}}
@searchEnabled={{true}}
@loadingMessage="Aan het laden..."
@noMatchesMessage="Geen types gevonden"
@searchMessage="Typ om te zoeken"
@searchField="label"
@options={{this.displayTypes}}
@selected={{this.displayType}}
@onChange={{this.selectDisplayType}}
id="display-type"
as |selected|
>
{{selected.label}}
</PowerSelect>
</AuFormRow>
<AuFormRow>
<AuToggleSwitch
@disabled={{@show}}
@checked={{this.isFieldRequired}}
@onChange={{this.toggleIsRequired}}
>Maak veld verplicht</AuToggleSwitch>
</AuFormRow>
</form>
<AuFormRow>
<AuToggleSwitch
@disabled={{@show}}
@checked={{this.isFieldRequired}}
@onChange={{this.toggleIsRequired}}
>Maak veld verplicht</AuToggleSwitch>
</AuFormRow>
</form>
{{/if}}
</:body>
<:footer>
<div class="au-u-flex au-u-flex--between">
Expand Down
1 change: 1 addition & 0 deletions app/components/rdf-input-fields/crud-custom-field-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default class RdfInputFieldCrudCustomFieldModalComponent extends Componen

@tracked isRemovingField;
@tracked isFieldRequired;
@tracked wantsToRemove;

customFieldEntry = this.store.createRecord('library-entry', {
name: 'Eigen veld',
Expand Down

0 comments on commit 95c46fb

Please sign in to comment.