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!

:zap: Add attribute for isNew to section form, to determine if editing existing

Alicia Sykese6a607572e8b
diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue
index 91060789..6d197694 100644
--- a/src/components/LinkItems/Section.vue
+++ b/src/components/LinkItems/Section.vue
@@ -12,7 +12,7 @@
@openContextMenu="openContextMenu"
>
<!-- If no items, show message -->
- <div v-if="!items || items.length < 1" class="no-items">
+ <div v-if="(!items || items.length < 1) && !isEditMode" class="no-items">
No Items to Show Yet
</div>
<!-- Item Container -->
@@ -69,6 +69,7 @@
v-if="editMenuOpen"
@closeEditSection="closeEditSection"
:sectionIndex="index"
+ :isAddNew="false"
/>
<!-- Right-click item options context menu -->
<ContextMenu