Skip to content

A self-hosted media server and file management system

fix: scan this library always shows when a library isn't selected

aminnausin241bf5619256
diff --git a/resources/js/components/dashboard/DashboardLibraries.vue b/resources/js/components/dashboard/DashboardLibraries.vue
index 0400e378..622f9abc 100644
--- a/resources/js/components/dashboard/DashboardLibraries.vue
+++ b/resources/js/components/dashboard/DashboardLibraries.vue
@@ -173,7 +173,7 @@ watch(
<ButtonText title="Add New Library" disabled text="New Library" class="xs:flex-initial hidden flex-1">
<template #icon><ProiconsAdd /></template>
</ButtonText>
- <ButtonText @click="handleScanLibrary" title="Scan for changes" :text="`Scan ${!!stateLibraryId ? `This Library` : 'All Libraries'}`" class="xs:flex-initial flex-1">
+ <ButtonText @click="handleScanLibrary" title="Scan for changes" :text="`Scan ${stateLibraryId > 0 ? `This Library` : 'All Libraries'}`" class="xs:flex-initial flex-1">
<template #icon><ProiconsArrowSync /></template>
</ButtonText>
</div>