mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
fix: default to tree view if extension shouldn't be shown (#25578)
Signed-off-by: Jonathan Winters <wintersjonathan0@gmail.com>
This commit is contained in:
@@ -784,6 +784,13 @@ Are you sure you want to disable auto-sync and rollback application '${props.mat
|
||||
const activeStatusExt = state.statusExtensionsMap[selectedExtension];
|
||||
const activeTopBarActionMenuExt = state.topBarActionMenuExtsMap[selectedExtension];
|
||||
|
||||
if (state.extensionsMap[pref.view] != null) {
|
||||
const extension = state.extensionsMap[pref.view];
|
||||
if (!extension.shouldDisplay(application)) {
|
||||
appContext.navigation.goto('.', {view: Tree});
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={`application-details ${props.match.params.name}`}>
|
||||
<Page
|
||||
|
||||
Reference in New Issue
Block a user