Commit f1186e22 authored by Stan Hu's avatar Stan Hu

Simplify frontend for "Advanced" dropdown in Geo Node list

parent 717ec812
...@@ -43,7 +43,6 @@ class GeoNodeStatus { ...@@ -43,7 +43,6 @@ class GeoNodeStatus {
const currentlyActive = !closestStatus.hasClass('hide-status') const currentlyActive = !closestStatus.hasClass('hide-status')
const togglerContainer = currentlyActive ? $('.toggler-inactive-container') : $('.toggler-active-container') const togglerContainer = currentlyActive ? $('.toggler-inactive-container') : $('.toggler-active-container')
element.detach().appendTo(togglerContainer);
element.find('.fa').toggleClass('fa-angle-down').toggleClass('fa-angle-up'); element.find('.fa').toggleClass('fa-angle-down').toggleClass('fa-angle-up');
closestStatus.toggleClass('hide-status'); closestStatus.toggleClass('hide-status');
} }
......
...@@ -29,15 +29,14 @@ ...@@ -29,15 +29,14 @@
} }
} }
.js-advanced-geo-node-status-toggler { .advanced-status-toggler {
color: $gl-link-color; color: $gl-link-color;
padding: 10px 0 0; padding: 10px 0 0;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
z-index: 2; display: inline-block;
& span:hover { & span:hover {
display: inline-block;
color: $gl-link-color; color: $gl-link-color;
text-decoration: underline; text-decoration: underline;
} }
......
...@@ -63,11 +63,6 @@ ...@@ -63,11 +63,6 @@
%strong.node-info.js-attachments-synced %strong.node-info.js-attachments-synced
%p %p
.advanced-geo-node-status-container .advanced-geo-node-status-container
.toggler-inactive-container
.js-advanced-geo-node-status-toggler
%span Advanced
%i.fa.fa-angle-down
%p
.advanced-status.hide-status .advanced-status.hide-status
%span.help-block %span.help-block
Database replication lag: Database replication lag:
...@@ -78,7 +73,10 @@ ...@@ -78,7 +73,10 @@
%span.help-block %span.help-block
Last event ID processed by cursor: Last event ID processed by cursor:
%strong.node-info.js-last-cursor-event %strong.node-info.js-last-cursor-event
.toggler-active-container .advanced-status-toggler
.js-advanced-geo-node-status-toggler
%span Advanced
= icon('angle-down')
%p %p
.js-health .js-health
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment