mirror of https://github.com/hashicorp/consul
ui: Completely remove the Overview routes when running the UI in HCP (#14606)
parent
acd9d42914
commit
ea06d6c5aa
@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Removed Overview page from HCP instalations
|
||||
```
|
@ -1,9 +1,12 @@
|
||||
import BaseAbility from './base';
|
||||
import { inject as service } from '@ember/service';
|
||||
|
||||
export default class OverviewAbility extends BaseAbility {
|
||||
@service('env') env;
|
||||
|
||||
resource = 'operator';
|
||||
segmented = false;
|
||||
get canAccess() {
|
||||
return this.canRead;
|
||||
return !this.env.var('CONSUL_HCP_ENABLED') && this.canRead;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue