open-consul/ui-v2/app/adapters
John Cowen d598a98cbf
ui: Fix token duplication bug (#7552)
We need to detect whether an object is an ember-data snapshot or just a
plain object, and we where restricted from using `instanceof` due to
ember-data's `Snapshot` class being private.

We'd chosen to go with `constructor.name` instead, which seemed to work,
but when the javascript gets minifed the name of the contructor is also
minified and therefore is not what you are expecting.

This commit reverts to our original idea of checking for the existence
and type of the `.attributes` function, which is the function we require
within the conditional, and therefore is more reliable (if the function
doesn't exist it will error out during development aswell as production)
2020-04-01 09:55:20 +01:00
..
acl.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
application.js ui: Fix token duplication bug (#7552) 2020-04-01 09:55:20 +01:00
coordinate.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
dc.js ui: UI Release Merge (ui-staging merge) (#6527) 2019-09-30 14:47:49 +01:00
discovery-chain.js ui: Various amends for 1.7beta (#6965) 2019-12-18 18:27:54 +00:00
http.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
intention.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
kv.js ui: Ensure KV flags are passed through to Consul on update (#7216) 2020-02-05 09:37:45 +00:00
node.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
nspace.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
policy.js ui: oss don't ever POST/PUT Namespaces when writing data (#7238) 2020-02-07 15:50:50 +00:00
proxy.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
role.js ui: oss don't ever POST/PUT Namespaces when writing data (#7238) 2020-02-07 15:50:50 +00:00
service.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
session.js ui: Namespace Support (#6639) 2019-12-18 12:26:47 +00:00
token.js ui: oss don't ever POST/PUT Namespaces when writing data (#7238) 2020-02-07 15:50:50 +00:00