{#if $badge} {#if !ignoreLoading && !silentFail && $loadingStatus === "loading"} {:else if !silentFail && ($loadingStatus === "error" || $apiState === "readonly" || $apiState === "offline")} {#if !hiddenFail} state.osmConnection.AttemptLogin()}> {/if} {:else if $loadingStatus === "logged-in"} {:else if !silentFail && $loadingStatus === "not-attempted"} {/if} {/if}