Update button title dynamically based on state

This commit is contained in:
marpeand 2024-02-06 16:52:03 -03:00
parent 32dd7668ea
commit ee11e5f8cc

View File

@ -250,7 +250,7 @@
</a> </a>
{#if svgInfo.wordmark !== undefined} {#if svgInfo.wordmark !== undefined}
<button <button
title="Show wordmark SVG" title={wordmarkSvg ? 'Show logo SVG' : 'Show wordmark SVG'}
on:click={() => { on:click={() => {
wordmarkSvg = !wordmarkSvg; wordmarkSvg = !wordmarkSvg;
}} }}