Skip to content
Snippets Groups Projects
Commit 7e92919c authored by Karl Prieb's avatar Karl Prieb Committed by Rodrigo Nascimento
Browse files

Regression: Fix directory table loading (#11223)

* test if we have usernames on rooms

* fix directory table loading

* fix directory indentation
parent 2e3cd812
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@
}
& tbody {
& tr {
& tr:not(.table-loading) {
cursor: pointer;
&:hover {
......@@ -203,3 +203,11 @@
text-overflow: ellipsis;
text-transform: capitalize;
}
.table-loading {
height: 10px;
}
.table-loading-td {
position: relative;
}
......@@ -16,7 +16,7 @@ Template.table.onDestroyed(function() {
});
Template.table.events({
'click tbody tr'(e, t) { t.data.onItemClick && t.data.onItemClick(this); },
'click tbody tr:not(.table-loading)'(e, t) { t.data.onItemClick && t.data.onItemClick(this); },
'scroll .table-scroll': _.debounce((e, t) => t.data.onScroll && t.data.onScroll(e.currentTarget), 300),
'click .js-sort'(e, t) { t.data.onSort(e.currentTarget.dataset.sort); }
});
......@@ -56,6 +56,11 @@
<td>{{topic}}</td>
</tr>
{{/each}}
{{#if isLoading}}
<tr class="table-loading">
<td class="table-loading-td" colspan="{{#if showLastMessage}}5{{else}}4{{/if}}">{{> loading}}</td>
</tr>
{{/if}}
</tbody>
{{/table}}
{{/if}}
......@@ -92,8 +97,8 @@
</tr>
{{/each}}
{{#if isLoading}}
<tr>
<td colspan="3" style="position: relative;">{{> loading}}</td>
<tr class="table-loading">
<td class="table-loading-td" colspan="3">{{> loading}}</td>
</tr>
{{/if}}
</tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment