open-consul/ui-v2/app/templates
John Cowen e4a00b39bf
ui: Use the `each key=""` parameter to force ember to reuse DOM (#7550)
Ember tries to reuse DOM elements when it can but as ember looks for
changes to objects rather than the DOM itself sometimes. This and the
fact that an objects identity may change even though its value hasn't,
results in ember occasionally re-mutating DOM when it doesn't need to.

The `each` helper includes a `key` attribute to hint to ember what it
should look for when deciding whether something has changed, rather than
the objects identity.

https://api.emberjs.com/ember/release/classes/Ember.Templates.helpers/methods/each#specifying-keys

We use this here to fix an issue where DOM was being redrawn after the
user had scrolled the page and was therefore resetting the scroll back
to 0 (the top of the page)
2020-03-31 14:58:59 +01:00
..
components ui: Discovery chain improvements (#7222) 2020-02-06 12:06:47 +00:00
dc ui: Use the `each key=""` parameter to force ember to reuse DOM (#7550) 2020-03-31 14:58:59 +01: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: Enable recovery from an unreachable datacenter (500 error) (#7404) 2020-03-09 09:10:47 +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