Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent_view: Show empty text after rerenders too.

Aman Agrawalb845ef5091da
diff --git a/web/src/recent_view_ui.js b/web/src/recent_view_ui.js
index 80b0059098e..4b96e67b81a 100644
--- a/web/src/recent_view_ui.js
+++ b/web/src/recent_view_ui.js
@@ -290,6 +290,7 @@ export function revive_current_focus() {
export function show_loading_indicator() {
loading.make_indicator($("#recent_view_loading_messages_indicator"));
+ $("#recent_view_table tbody").removeClass("required-text");
}
export function hide_loading_indicator() {
diff --git a/web/templates/recent_view_table.hbs b/web/templates/recent_view_table.hbs
index e89189b7046..728254f37d0 100644
--- a/web/templates/recent_view_table.hbs
+++ b/web/templates/recent_view_table.hbs
@@ -11,6 +11,7 @@
</div>
<div class="table_fix_head" data-simplebar>
<table class="table table-responsive">
+ <tbody data-empty="{{t 'No conversations match your filters.' }}" class="required-text"></tbody>
<thead>
<tr>
<th data-sort="stream_sort">{{t 'Stream' }}</th>
@@ -22,6 +23,5 @@
<th data-sort="numeric" data-sort-prop="last_msg_id" class="last_msg_time_header active descend">{{t 'Time' }}</th>
</tr>
</thead>
- <tbody data-empty="{{t 'No topics match your current filter.' }}"></tbody>
</table>
</div>