open-consul/ui/packages/consul-ui/app/models
John Cowen d157c63fe4
ui: Don't show the CRD menu for read-only intentions (#11149)
* ui: Don't show the CRD menu for read-only intentions

The UI bug here manifests itself only when a user/token is configured to have read-only access to intentions. Instead of only letting folks click to see a read only page of the intention, we would show an additional message saying that the intention was read-only due to it being 'Managed by [a kubernetes] CRD'. Whilst the intention was still read only, this extra message was still confusing for users.

This PR fixes up the conditional logic and further moves the logic to use ember-can - looking at the history of the files in question, this bug snuck itself in partly due to it being 'permission-y type stuff' previous to using ember-can and when something being editable or not was nothing to do with ACLs. Then we moved to start using ember-can without completely realising what IsEditable previously meant. So overall the code here is a tiny bit clearer/cleaner by adding a proper can view CRD intention instead of overloading the idea of 'editability'.
2021-09-27 17:19:32 +01:00
..
auth-method.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
binding-rule.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
coordinate.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
dc.js ui: Show local datacenter by default on first visit (#9377) 2020-12-14 15:29:40 +00:00
discovery-chain.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
gateway-config.js ui: Convert Service.GatewayConfig to a model fragment (#9586) 2021-01-20 15:36:23 +00:00
health-check.js ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +01:00
intention-permission-http-header.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
intention-permission-http.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
intention-permission.js ui: Move ember-data classes to use native JS classes/decorators (#9136) 2020-11-09 17:29:12 +00:00
intention.js ui: Don't show the CRD menu for read-only intentions (#11149) 2021-09-27 17:19:32 +01:00
kv.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
node.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
nspace.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
oidc-provider.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
partition.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
permission.js ui: Restrict the viewing/editing of certain UI elements based on the users ACLs (#9687) 2021-02-19 16:42:16 +00:00
policy.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
proxy.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
role.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
service-instance.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
service.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
session.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
token.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
topology.js ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00