{#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)} > {#if type.required} {$i18n.t('Required')} {:else} {$i18n.t('Optional')} {/if} remove(type.entry)} /> {:else} {$i18n.t('No attributes assigned to this type.')} {/each} (adding = true)} /> {/if}