Show Add New Section when no sections exist
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<!-- Main content, section for each group of items -->
|
<!-- Main content, section for each group of items -->
|
||||||
<div v-if="checkTheresData(sections)"
|
<div v-if="checkTheresData(sections) || isEditMode"
|
||||||
:class="`item-group-container `
|
:class="`item-group-container `
|
||||||
+ `orientation-${layout} `
|
+ `orientation-${layout} `
|
||||||
+ `item-size-${itemSizeBound} `
|
+ `item-size-${itemSizeBound} `
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<AddNewSection v-if="isEditMode" />
|
<AddNewSection v-if="isEditMode" />
|
||||||
</div>
|
</div>
|
||||||
<!-- Show message when there's no data to show -->
|
<!-- 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')}}
|
{{searchValue ? $t('home.no-results') : $t('home.no-data')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- Show banner at bottom of screen, for Saving config changes -->
|
<!-- Show banner at bottom of screen, for Saving config changes -->
|
||||||
|
|||||||
Reference in New Issue
Block a user