mirror of https://gitee.com/bigwinds/arangodb
included arrows to better visualize that the collection names accordion elements (#6642)
This commit is contained in:
parent
dade5b1bb1
commit
78f86ee134
|
@ -35,6 +35,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-2-24 shardSyncIcons">
|
<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)) { %>
|
<% if (collectionInSync(name)) { %>
|
||||||
<i style="margin-left: 10px;" class="fa fa-check-circle"></i>
|
<i style="margin-left: 10px;" class="fa fa-check-circle"></i>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
|
|
|
@ -46,11 +46,17 @@
|
||||||
return this;
|
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) {
|
toggleSections: function (e) {
|
||||||
var colName = $(e.currentTarget).parent().attr('id');
|
var colName = $(e.currentTarget).parent().attr('id');
|
||||||
this.visibleCollection = colName;
|
this.visibleCollection = colName;
|
||||||
$('.sectionShardContent').hide();
|
$('.sectionShardContent').hide();
|
||||||
$(e.currentTarget).next().show();
|
$(e.currentTarget).next().show();
|
||||||
|
this.renderArrows(e);
|
||||||
|
|
||||||
this.getShardDetails(colName);
|
this.getShardDetails(colName);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue