Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Show Add New Section when no sections exist

aterox955439fcfe62
diff --git a/src/views/Home.vue b/src/views/Home.vue
index d42097ba..54fbee1b 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -19,7 +19,7 @@
</router-link>
</div>
<!-- Main content, section for each group of items -->
- <div v-if="checkTheresData(sections)"
+ <div v-if="checkTheresData(sections) || isEditMode"
:class="`item-group-container `
+ `orientation-${layout} `
+ `item-size-${itemSizeBound} `
@@ -50,7 +50,7 @@
<AddNewSection v-if="isEditMode" />
</div>
<!-- Show message when there's no data to show -->
- <div v-if="checkIfResults()" class="no-data">
+ <div v-if="checkIfResults() && !isEditMode" class="no-data">
{{searchValue ? $t('home.no-results') : $t('home.no-data')}}
</div>
<!-- Show banner at bottom of screen, for Saving config changes -->