{ updateBanners(); saveHandler(); }} >
{$i18n.t('Banners')}
{ if (banners.length === 0 || banners.at(-1).content !== '') { banners = [ ...banners, { id: uuidv4(), type: '', title: '', content: '', dismissible: false, timestamp: Math.floor(Date.now() / 1000) } ]; } }} >
{#each banners as banner, bannerIdx}
{#if banner.type == ''}
{$i18n.t('Type')}
{/if}
{$i18n.t('Info')}
{$i18n.t('Warning')}
{$i18n.t('Error')}
{$i18n.t('Success')}
{ banners.splice(bannerIdx, 1); banners = banners; }} >
{/each}
Save