1
0
Fork 0

included arrows to better visualize that the collection names accordion elements (#6642)

This commit is contained in:
Jan 2018-09-27 19:33:01 +02:00 committed by GitHub
parent dade5b1bb1
commit 78f86ee134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,11 @@
</div>
</div>
<div class="pure-u-2-24 shardSyncIcons">
<% if (visible === name) { %>
<i style="margin-left: 10px; color: #fff;" class="fa fa-arrow-down"></i>
<% } else { %>
<i style="margin-left: 10px; color: #fff;" class="fa fa-arrow-right"></i>
<% } %>
<% if (collectionInSync(name)) { %>
<i style="margin-left: 10px;" class="fa fa-check-circle"></i>
<% } else { %>

View File

@ -46,11 +46,17 @@
return this;
},
renderArrows: function (e) {
$('#shardsContent .fa-arrow-down').removeClass('fa-arrow-down').addClass('fa-arrow-right');
$(e.currentTarget).find('.fa-arrow-right').removeClass('fa-arrow-right').addClass('fa-arrow-down');
},
toggleSections: function (e) {
var colName = $(e.currentTarget).parent().attr('id');
this.visibleCollection = colName;
$('.sectionShardContent').hide();
$(e.currentTarget).next().show();
this.renderArrows(e);
this.getShardDetails(colName);
},