open-consul/ui/packages/consul-ui/app/components/consul
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
..
acl/disabled ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
auth-method ui: Fixup prettier for scss files and run (#10296) 2021-05-27 13:23:54 +01:00
discovery-chain ui: [BUGFIX] Add missing `@` to fix missing non-subset Failovers (#10913) 2021-08-26 17:01:26 +01:00
exposed-path/list ui: Add EmptyState for exposed paths, plus additional details (#9445) 2021-01-05 16:59:16 +00:00
external-source ui: Add Vault as a Service External Source (#10769) 2021-08-04 18:22:43 -04:00
health-check ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
instance-checks ui: [BUGFIX] Ensure we show the correct count of instances for each node (#9749) 2021-02-11 11:36:36 +00:00
intention ui: Don't show the CRD menu for read-only intentions (#11149) 2021-09-27 17:19:32 +01:00
kind ui: Re-organize our %h* placeholders (#9584) 2021-01-26 17:53:45 +00:00
kv ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
loader ui: Loader amends/improvements (#10181) 2021-05-07 12:23:29 +01:00
lock-session ui: Remove refresh-route action for session invalidation (#11105) 2021-09-24 12:10:10 +01:00
logo Update brand assets (#10081) 2021-05-03 16:19:09 +01:00
metadata/list ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
node ui: [BUGFIX] Ensure we show the correct count of instances for each node (#9749) 2021-02-11 11:36:36 +00:00
node-identity/template ui: Move identity components (#9298) 2020-11-30 18:42:59 +00:00
nspace ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
policy ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
role ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
service ui: Search/filtering 'Filtered by:' search status (#9442) 2021-01-25 18:13:54 +00:00
service-identity/template ui: Move identity components (#9298) 2020-11-30 18:42:59 +00:00
service-instance ui: Unix Domain Socket support (#10287) 2021-05-26 17:52:25 +01:00
source ui: Create Routing Configurations route and page (#10835) 2021-08-16 12:04:04 -04:00
token ui: Add copy button for Secret ID in Tokens list page (#10735) 2021-07-30 13:52:37 -04:00
tomography/graph ui: Move linting to the `node:test` script (#9385) 2020-12-14 15:28:35 +00:00
transparent-proxy Create TransparentProxy mode label for service instance page 2021-04-15 09:19:21 -04:00
upstream ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
upstream-instance ui: Split up the socket mode from the socket path (#10581) 2021-08-11 13:00:32 -04:00