fix kubernetes cluster submenu has no entries (#5502)

pull/5543/head
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: {
endpointId: '<',
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>
</li>
<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>