{#if types.length || $entity?.attr['~IN']?.length} {$i18n.t('Type Attributes')} {#if adding} { if (!ev.detail) adding = false; }} /> {/if} {#each types as type} setRequired(type.entry, !type.required)} > {type.required ? $i18n.t('Required') : $i18n.t('Optional')} remove(type.entry)} /> {:else} {$i18n.t('No attributes assigned to this type.')} {/each} (adding = true)} /> {/if}