consul/ui-v2/app/templates
John Cowen 468e82dcf9
ui: Alter position of logic for showing the Round Trip Time tab to prevent DOM refresh (#7377)
* ui: Move tomography length check inside of the partial

Previously we checked the length of tomography.distances to decide
whether to show the RTT tab or not. Previous to our ember upgrade this
would not cause a DOM reload of so many elements (i.e. all of the tab
content). Since our ember upgrade, any change to tomography (so not
necessarily the length of distances) seems to fire a change to the length (even if
the length remains the same). The knock on effect of this is that the
array of tab panels seems to be recalculated (but remain the same) and
all of the tab panels are completely re-rendered, causing the scroll of
the page to be reset.

This commit moves the check for tomography.distance.length to the lower
down with the loop, which means the array of tab panels always remains
the same, which consequently means that the entire array of tab panels
is never re-rendered entirely, and therefore fixes the issue.
2020-03-04 18:12:27 +00:00
..
components ui: Discovery chain improvements (#7222) 2020-02-06 12:06:47 +00:00
dc ui: Alter position of logic for showing the Round Trip Time tab to prevent DOM refresh (#7377) 2020-03-04 18:12:27 +00:00
-consul-loading.hbs UI V2 (#4086) 2018-05-10 19:52:53 +01:00
application.hbs ui: Implements the ember-page-title addon to the UI (#7118) 2020-01-28 09:25:52 -05:00
dc.hbs ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
error.hbs ui: Move slots to use attributes over positional params (#7032) 2020-01-15 09:15:54 +00:00
head.hbs ui: Implements the ember-page-title addon to the UI (#7118) 2020-01-28 09:25:52 -05:00
loading.hbs UI V2 (#4086) 2018-05-10 19:52:53 +01:00
notfound.hbs UI V2 (#4086) 2018-05-10 19:52:53 +01:00
nspace.hbs ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
settings.hbs ui: Adds an acceptance test for hiding Blocking Queries (#7162) 2020-01-31 10:12:22 -05:00