1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

fix kubernetes cluster submenu has no entries (#5502)

This commit is contained in:
Richard Wei 2021-08-27 08:19:12 +12:00 committed by GitHub
parent 1830a80a61
commit 0ac9d15667
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -5,5 +5,6 @@ angular.module('portainer.kubernetes').component('kubernetesSidebar', {
bindings: { bindings: {
endpointId: '<', endpointId: '<',
isSidebarOpen: '<', isSidebarOpen: '<',
adminAccess: '<',
}, },
}); });

View file

@ -16,7 +16,12 @@
<kubectl-shell ng-if="applicationState.endpoint.mode && applicationState.endpoint.mode.provider === 'KUBERNETES'" class="kubectl-shell"></kubectl-shell> <kubectl-shell ng-if="applicationState.endpoint.mode && applicationState.endpoint.mode.provider === 'KUBERNETES'" class="kubectl-shell"></kubectl-shell>
</li> </li>
<div ng-if="applicationState.endpoint.mode"> <div ng-if="applicationState.endpoint.mode">
<kubernetes-sidebar ng-if="applicationState.endpoint.mode.provider === 'KUBERNETES'" is-sidebar-open="toggle" endpoint-id="endpointId"></kubernetes-sidebar> <kubernetes-sidebar
ng-if="applicationState.endpoint.mode.provider === 'KUBERNETES'"
is-sidebar-open="toggle"
endpoint-id="endpointId"
admin-access="isAdmin"
></kubernetes-sidebar>
<azure-sidebar ng-if="applicationState.endpoint.mode.provider === 'AZURE'" endpoint-id="endpointId"> </azure-sidebar> <azure-sidebar ng-if="applicationState.endpoint.mode.provider === 'AZURE'" endpoint-id="endpointId"> </azure-sidebar>