consul/ui-v2/app
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
..
adapters ui: oss don't ever POST/PUT Namespaces when writing data (#7238) 2020-02-07 15:50:50 +00:00
components ui: Discovery chain improvements (#7222) 2020-02-06 12:06:47 +00:00
computed ui: UI Release Merge (ui-staging merge) (#6527) 2019-09-30 14:47:49 +01:00
controllers ui: Use WithEventSource mixin on intentions to ensure cleanup (#7333) 2020-02-21 14:00:33 +00:00
forms ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
helpers ui: Improve configuration/env/feature flag usage (also add build time year detection) (#7072) 2020-01-21 17:52:40 +00:00
initializers ui: Improve configuration/env/feature flag usage (also add build time year detection) (#7072) 2020-01-21 17:52:40 +00:00
instance-initializers ui: Add live updates/blocking queries to the Intention listing page (#7161) 2020-01-29 16:22:31 +00:00
mixins ui: Acceptance test improvements to prepare for more NS tests (#6980) 2020-01-24 12:26:28 +00:00
models ui: Discovery Chain (#6746) 2019-12-18 12:26:47 +00:00
routes ui: Gracefully cope with 500 errors from the disco-chain API endpoint (#7291) 2020-02-14 14:46:16 +00:00
routing ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
search/filters ui: Add ability to search nodes listing page with IP Address (#7204) 2020-02-04 10:45:25 -05:00
serializers Ensure ember-data ids are created correct taking into account the nspace (#6974) 2019-12-20 14:30:19 +00:00
services ui: Use options.method for keying not options.type (#7308) 2020-02-18 14:03:27 +00:00
styles ui: Be more specific with the display toggling checkboxes (#7309) 2020-02-18 17:05:45 +00:00
templates 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
utils ui: Discovery chain improvements (#7222) 2020-02-06 12:06:47 +00:00
validations ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
app.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
env.js ui: Improve configuration/env/feature flag usage (also add build time year detection) (#7072) 2020-01-21 17:52:40 +00:00
index.html ui: Keyboard navigation improvements (#7090) 2020-01-20 14:15:15 +00:00
resolver.js UI V2 (#4086) 2018-05-10 19:52:53 +01:00
router.js ui: Improve configuration/env/feature flag usage (also add build time year detection) (#7072) 2020-01-21 17:52:40 +00:00