open-consul/ui/packages/consul-ui/app
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
..
abilities ui: Don't show the CRD menu for read-only intentions (#11149) 2021-09-27 17:19:32 +01:00
adapters ui: Add initial partition support to intentions (#11129) 2021-09-24 17:31:58 +01:00
components ui: Don't show the CRD menu for read-only intentions (#11149) 2021-09-27 17:19:32 +01:00
controllers ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
decorators ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +01:00
filter/predicates ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
forms ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
helpers ui: Gracefully recover from non-existent DC errors (#11077) 2021-09-22 18:26:36 +01:00
initializers ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
instance-initializers ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
locations ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
mixins ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
models ui: Don't show the CRD menu for read-only intentions (#11149) 2021-09-27 17:19:32 +01:00
modifiers ui: CopyButton amends (#10511) 2021-07-06 16:56:36 +01:00
routes ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
routing ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
search/predicates ui: Serf Health Check warning notice (#10194) 2021-05-13 11:36:51 +01:00
serializers ui: Add initial partition support to intentions (#11129) 2021-09-24 17:31:58 +01:00
services ui: Add initial partition support to intentions (#11129) 2021-09-24 17:31:58 +01:00
sort/comparators ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
styles ui: Remove info panel from the nspace menu when editing nspaces (#11130) 2021-09-24 18:05:22 +01:00
templates ui: Don't show the CRD menu for read-only intentions (#11149) 2021-09-27 17:19:32 +01:00
utils ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
validations ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00
app.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
env.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
formats.js ui: Install ember-intl (#9399) 2020-12-15 18:29:32 +00:00
index.html ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
router.js ui: Remove legacy ACLs (#11096) 2021-09-22 18:32:51 +01:00