ui: Revert to Services route as default (#12804)
* ui: Revert to Services route as default * ui: update page navigation tests to match routing change
This commit is contained in:
parent
a050aa39b9
commit
05e5722153
|
@ -50,7 +50,9 @@ as |source|>
|
|||
{{! until we get to the dc route we don't know any permissions }}
|
||||
{{! as we don't know the dc, any inital permission based }}
|
||||
{{! redirects are in the dc.show route}}
|
||||
{{did-insert (route-action 'replaceWith' 'dc.show'
|
||||
|
||||
{{! 2022-04-15: Temporarily reverting the services page to the default }}
|
||||
{{did-insert (route-action 'replaceWith' 'dc.services.index'
|
||||
(hash
|
||||
dc=(env 'CONSUL_DATACENTER_LOCAL')
|
||||
)
|
||||
|
|
|
@ -10,4 +10,4 @@ Feature: dc / forwarding
|
|||
---
|
||||
dc: datacenter
|
||||
---
|
||||
Then the url should be /datacenter/overview/server-status
|
||||
Then the url should be /datacenter/services
|
||||
|
|
|
@ -4,4 +4,4 @@ Feature: index-forwarding
|
|||
Scenario: Arriving at the index page when there is only one datacenter
|
||||
Given 1 datacenter model with the value "dc1"
|
||||
When I visit the index page
|
||||
Then the url should be /dc1/overview/server-status
|
||||
Then the url should be /dc1/services
|
||||
|
|
|
@ -10,7 +10,7 @@ Feature: page-navigation
|
|||
---
|
||||
dc: dc1
|
||||
---
|
||||
Then the url should be /dc1/overview/server-status
|
||||
Then the url should be /dc1/services
|
||||
Scenario: Clicking [Link] in the navigation takes me to [URL]
|
||||
When I visit the services page for yaml
|
||||
---
|
||||
|
|
|
@ -7,32 +7,32 @@
|
|||
index: {
|
||||
_options: {
|
||||
path: '/',
|
||||
redirect: '../show/serverstatus',
|
||||
redirect: '../services',
|
||||
},
|
||||
},
|
||||
show: {
|
||||
_options: {
|
||||
path: '/overview',
|
||||
abilities: ['access overview']
|
||||
abilities: ['access overview'],
|
||||
},
|
||||
serverstatus: {
|
||||
_options: {
|
||||
path: '/server-status',
|
||||
abilities: ['access overview', 'read zones']
|
||||
abilities: ['access overview', 'read zones'],
|
||||
},
|
||||
},
|
||||
cataloghealth: {
|
||||
_options: {
|
||||
path: '/catalog-health',
|
||||
abilities: ['access overview']
|
||||
abilities: ['access overview'],
|
||||
},
|
||||
},
|
||||
license: {
|
||||
_options: {
|
||||
path: '/license',
|
||||
abilities: ['access overview', 'read licence']
|
||||
abilities: ['access overview', 'read licence'],
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
services: {
|
||||
_options: { path: '/services' },
|
||||
|
|
Loading…
Reference in New Issue