Skip to content
Snippets Groups Projects
Commit 96570e6e authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #5745 from RocketChat/hide-loading

show loading animation only when room is loading new messages
parents dc837d0b 737aeb23
No related branches found
No related tags found
No related merge requests found
......@@ -4572,6 +4572,7 @@ body:not(.is-cordova) {
.load-more {
position: relative;
padding: 1rem 0;
height: 10px;
}
.search-messages-list {
......
......@@ -314,9 +314,6 @@ Template.room.events
RoomHistoryManager.getMoreNext(@_id)
, 200
'click .load-more > button': ->
RoomHistoryManager.getMore(@_id)
'click .new-message': (e) ->
Template.instance().atBottom = true
Template.instance().find('.input-message').focus()
......
......@@ -84,7 +84,9 @@
{{#if canPreview}}
{{#if hasMore}}
<li class="load-more">
{{> loading}}
{{#if isLoading}}
{{> loading}}
{{/if}}
</li>
{{else}}
<li class="start color-info-font-color">
......@@ -97,7 +99,9 @@
{{/each}}
{{#if hasMoreNext}}
<li class="load-more">
{{> loading}}
{{#if isLoading}}
{{> loading}}
{{/if}}
</li>
{{/if}}
</ul>
......
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