Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91024bc

Browse filesBrowse files
committed
fix(CDataTable): fixed issue with loading/no-items-slot
if loading the items in the table asynchronously and passing the loading prop to the c-data-table, until the request would be done, the table would display both the no-item-slot and the loading slot. this fix changes it so that while loading, do not display the no-items-slot
1 parent 3c8c082 commit 91024bc
Copy full SHA for 91024bc

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/components/table/CDataTable.vue

Copy file name to clipboardExpand all lines: src/components/table/CDataTable.vue
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
</td>
160160
</tr>
161161
</template>
162-
<tr v-if="!currentItems.length">
162+
<tr v-if="!currentItems.length && !loading">
163163
<td :colspan="colspan">
164164
<slot name="no-items-view">
165165
<div class="text-center my-5">

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.