mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Enforce semicolons in eslint
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0f3f5611ba
commit
1477bb8274
531 files changed
+3979
-3975
No files matched your search
@@ -1 +1 @@
|
||||
export * from "./kubeconfig-dialog"
|
||||
export * from "./kubeconfig-dialog";
|
||||
@@ -54,27 +54,27 @@ export class KubeConfigDialog extends React.Component<Props> {
|
||||
|
||||
async loadConfig() {
|
||||
const config = await this.data.loader().catch(err => {
|
||||
Notifications.error(err)
|
||||
this.close()
|
||||
})
|
||||
this.config = config ? jsYaml.dump(config) : ""
|
||||
Notifications.error(err);
|
||||
this.close();
|
||||
});
|
||||
this.config = config ? jsYaml.dump(config) : "";
|
||||
}
|
||||
|
||||
copyToClipboard = () => {
|
||||
if (this.config && copyToClipboard(this.configTextArea)) {
|
||||
Notifications.ok(<Trans>Config copied to clipboard</Trans>)
|
||||
Notifications.ok(<Trans>Config copied to clipboard</Trans>);
|
||||
}
|
||||
}
|
||||
|
||||
download = () => {
|
||||
downloadFile("config", this.config, "text/yaml")
|
||||
downloadFile("config", this.config, "text/yaml");
|
||||
}
|
||||
|
||||
render() {
|
||||
const { isOpen, data = {} } = KubeConfigDialog;
|
||||
const { ...dialogProps } = this.props;
|
||||
const yamlConfig = this.config;
|
||||
const header = <h5>{data.title || <Trans>Kubeconfig File</Trans>}</h5>
|
||||
const header = <h5>{data.title || <Trans>Kubeconfig File</Trans>}</h5>;
|
||||
const buttons = (
|
||||
<div className="actions flex gaps">
|
||||
<Button plain onClick={this.copyToClipboard}>
|
||||
@@ -87,7 +87,7 @@ export class KubeConfigDialog extends React.Component<Props> {
|
||||
<Trans>Close</Trans>
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
);
|
||||
return (
|
||||
<Dialog
|
||||
{...dialogProps}
|
||||
@@ -107,15 +107,15 @@ export class KubeConfigDialog extends React.Component<Props> {
|
||||
</WizardStep>
|
||||
</Wizard>
|
||||
</Dialog>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export function openServiceAccountKubeConfig(account: ServiceAccount) {
|
||||
const accountName = account.getName()
|
||||
const namespace = account.getNs()
|
||||
const accountName = account.getName();
|
||||
const namespace = account.getNs();
|
||||
KubeConfigDialog.open({
|
||||
title: <Trans>{accountName} kubeconfig</Trans>,
|
||||
loader: () => apiBase.get(`/kubeconfig/service-account/${namespace}/${accountName}`)
|
||||
})
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user