mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
* backend migration/backport * Feat(kubeconfig): kubeconfig download button frontend EE-1202 (#5385) * kubeconfig download button frontend * fix kubeconfig download button * backend migration/backport * moved ng-if up one level Co-authored-by: zees-dev <dev.786zshan@gmail.com> * resolved conflicts, updated code * - kube-config -> kube-config-download-button - fixed kubeconfig file name (bug) Co-authored-by: Richard Wei <54336863+WaysonWei@users.noreply.github.com>
29 lines
1.2 KiB
HTML
29 lines
1.2 KiB
HTML
<button type="button" class="btn btn-xs btn-primary" ng-click="$ctrl.connectConsole()" ng-disabled="$ctrl.state.shell.connected" data-cy="k8sSidebar-shellButton">
|
|
<i class="fa fa-terminal space-right"></i> kubectl shell
|
|
</button>
|
|
|
|
<kube-config-download-button></kube-config-download-button>
|
|
|
|
<div ng-if="$ctrl.state.checked" class="{{ $ctrl.state.css }}-kubectl-shell">
|
|
<div class="shell-container">
|
|
<div class="shell-item"><i class="fas fa-terminal" style="margin-right: 5px;"></i>kubectl shell</div>
|
|
<div class="shell-item-right">
|
|
<i class="fas fa-redo-alt" ng-click="$ctrl.screenClear();" data-cy="k8sShell-refreshButton"></i>
|
|
<i
|
|
class="fas {{ $ctrl.state.icon }}"
|
|
ng-click="$ctrl.miniRestore();"
|
|
data-cy="{{ $ctrl.state.icon === '.fa-window-minimize' ? 'k8sShell-restore' : 'k8sShell-minimise' }}"
|
|
></i>
|
|
<i class="fas fa-times" ng-click="$ctrl.disconnect()" data-cy="k8sShell-closeButton"></i>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div style="padding: 0px;">
|
|
<div>
|
|
<div id="terminal-container" class="terminal-container">
|
|
<div style="position: fixed; color: #fff;">Loading Terminal...</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|