{#if $journals_sess.show__modal_edit__journal_obj} Journal Type: { // Update the cfg_json with the selected journal type. Example cate $journals_slct.tmp_journal_obj.type_code = event.target.value; console.log('Selected journal type:', $journals_slct.tmp_journal_obj.type_code); }} title="Select a journal type" > Select Journal Type {#each $journals_loc.journal.type_code_li as journal_type} {journal_type.name} {/each} Journal Categories: {#each $journals_slct.tmp_journal_obj.cfg_json.category_li as category, index} { $journals_slct.tmp_journal_obj.cfg_json.category_li.splice(index, 1); $journals_slct.tmp_journal_obj.cfg_json.category_li = $journals_slct.tmp_journal_obj.cfg_json.category_li; }} > Remove {/each} { $journals_slct.tmp_journal_obj.cfg_json.category_li.push({ code: '', name: '' }); $journals_slct.tmp_journal_obj.cfg_json.category_li = $journals_slct.tmp_journal_obj.cfg_json.category_li; }} class="btn btn-sm variant-ghost-success hover:variant-filled-success transition max-w-96" > Add Category Journal Entry List Max Height: { $journals_slct.tmp_journal_obj.cfg_json.entry_li_max_height = event.target.value; console.log('Selected max height:', $journals_slct.tmp_journal_obj.cfg_json.entry_li_max_height); }} > Default (auto) Small (8) Medium (16) Large (32) Extra Large (96) Full (no limit) Update Cancel {/if}