consul/ui-v2/app/templates/dc/services
John Cowen 6ffe0e6fe4
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
..
-addresses.hbs ui: Move slots to use attributes over positional params (#7032) 2020-01-15 09:15:54 +00:00
-exposedpaths.hbs ui: Move slots to use attributes over positional params (#7032) 2020-01-15 09:15:54 +00:00
-instances.hbs ui: Move slots to use attributes over positional params (#7032) 2020-01-15 09:15:54 +00:00
-nodechecks.hbs UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
-notifications.hbs ui: Adds blocking query support to the service detail page (#5479) 2019-05-01 18:22:22 +00:00
-routing.hbs ui: Discovery Chain (#6746) 2019-12-18 12:26:47 +00:00
-servicechecks.hbs ui: Expose checks (#6575) 2019-12-18 12:26:43 +00:00
-tags.hbs UI: Service Instances (#5326) 2019-05-01 18:22:10 +00:00
-upstreams.hbs ui: Move slots to use attributes over positional params (#7032) 2020-01-15 09:15:54 +00:00
index.hbs ui: Implements the ember-page-title addon to the UI (#7118) 2020-01-28 09:25:52 -05:00
instance.hbs ui: Use the `each key=""` parameter to force ember to reuse DOM (#7550) 2020-03-31 14:58:59 +01:00
metadata.hbs ui: Move slots to use attributes over positional params (#7032) 2020-01-15 09:15:54 +00:00
show.hbs ui: Use the `each key=""` parameter to force ember to reuse DOM (#7550) 2020-03-31 14:58:59 +01:00