File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,7 @@ function downloadCustomSvg() {
6363 try {
6464 const blob = new Blob ([svg ], { type: ' image/svg+xml' })
6565 downloadFile (blob , ` npmx-logo-${activeAccentId .value }.svg ` )
66- }
67- finally {
66+ } finally {
6867 svgLoading .value = false
6968 }
7069}
Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ function handleSvgDownload(src: string) {
4949 svgLoading .value .add (src )
5050 try {
5151 downloadFileLink (src , src .replace (' /' , ' ' ))
52- }
53- finally {
52+ } finally {
5453 svgLoading .value .delete (src )
5554 }
5655}
@@ -137,7 +136,11 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
137136 <span
138137 class =" size-[1em]"
139138 aria-hidden =" true"
140- :class =" svgLoading.has(logo.src) ? 'i-lucide:loader-circle animate-spin' : 'i-lucide:download'"
139+ :class ="
140+ svgLoading.has(logo.src)
141+ ? 'i-lucide:loader-circle animate-spin'
142+ : 'i-lucide:download'
143+ "
141144 />
142145 {{ $t('brand.logos.download_svg') }}
143146 </ButtonBase >
@@ -203,7 +206,11 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
203206 <span
204207 class =" size-[1em]"
205208 aria-hidden =" true"
206- :class =" svgLoading.has(logo.srcLight ?? logo.src) ? 'i-lucide:loader-circle animate-spin' : 'i-lucide:download'"
209+ :class ="
210+ svgLoading.has(logo.srcLight ?? logo.src)
211+ ? 'i-lucide:loader-circle animate-spin'
212+ : 'i-lucide:download'
213+ "
207214 />
208215 {{ $t('brand.logos.download_svg') }}
209216 </ButtonBase >
You can’t perform that action at this time.
0 commit comments