diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue
index 351bd60f..db3d73ee 100644
--- a/src/components/LinkItems/Section.vue
+++ b/src/components/LinkItems/Section.vue
@@ -12,11 +12,11 @@
@openContextMenu="openContextMenu"
>
-
+
{{ $t('home.no-items-section') }}
-
@@ -58,7 +58,7 @@
/>
0) return 'widget';
- if (this.items && this.items.length > 0) return 'item';
- return 'empty';
+ hasItems() {
+ if (this.isEditMode) return true;
+ return this.items && this.items.length > 0;
+ },
+ hasWidgets() {
+ return this.widgets && this.widgets.length > 0;
+ },
+ isEmpty() {
+ return !this.hasItems && !this.hasWidgets;
},
/* If the sortBy attribute is specified, then return sorted data */
sortedItems() {