-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport of ui: Completely remove the Overview routes when running th…
…e UI in HCP into release/1.13.x (#14682) This pull request was automerged via backport-assistant
- Loading branch information
1 parent
3c321b6
commit 6fbe899
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
ui: Removed Overview page from HCP instalations | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters