{#if !state.theme.official && !state.featureSwitchIsTesting.data}
The auto-apply button is only available in official themes (or in testing mode)
{:else if ids === undefined}
Gathering which elements support auto-apply...
{:else if tagRenderingConfig === undefined}
Target tagrendering {options.targetTagRendering} not found"
{:else if $ids.length === 0}
No elements found to perform action
{:else if $buttonState.error !== undefined}
Something went wrong
{$buttonState.error}
{:else if $buttonState === "done"}
All done!
{:else if $buttonState === "running"}
Applying changes, currently at {$appliedNumberOfFeatures} / {$ids.length}
{:else if $buttonState === "idle"}
{ applyAllChanges() }} >
{options.text}
The following objects will be updated:
{#each $ids as featId} {#if layer.layerDef.source.geojsonSource === undefined}
{featId}
{:else}
{featId}
{/if} {/each}
{:else}
Not supposed to show this... AutoApplyButton has invalid buttonstate: {$buttonState}
{/if}