mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
16 lines
393 B
JavaScript
16 lines
393 B
JavaScript
|
export default class KubeConfigController {
|
||
|
/* @ngInject */
|
||
|
constructor($window, KubernetesConfigService) {
|
||
|
this.$window = $window;
|
||
|
this.KubernetesConfigService = KubernetesConfigService;
|
||
|
}
|
||
|
|
||
|
async downloadKubeconfig() {
|
||
|
await this.KubernetesConfigService.downloadConfig();
|
||
|
}
|
||
|
|
||
|
$onInit() {
|
||
|
this.state = { isHTTPS: this.$window.location.protocol === 'https:' };
|
||
|
}
|
||
|
}
|