mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Improve notification text
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
2e0559d985
commit
d6f01be62e
@ -17,13 +17,15 @@ export const invalidKubeconfigHandler = {
|
|||||||
function InvalidKubeconfigListener(event: IpcRendererEvent, ...[clusterId]: InvalidKubeConfigArgs): void {
|
function InvalidKubeconfigListener(event: IpcRendererEvent, ...[clusterId]: InvalidKubeConfigArgs): void {
|
||||||
const notificationId = `invalid-kubeconfig:${clusterId}`;
|
const notificationId = `invalid-kubeconfig:${clusterId}`;
|
||||||
const cluster = clusterStore.getById(clusterId);
|
const cluster = clusterStore.getById(clusterId);
|
||||||
|
const contextName = cluster.name !== cluster.contextName ? `(context: ${cluster.contextName})` : "";
|
||||||
|
|
||||||
Notifications.error(
|
Notifications.error(
|
||||||
(
|
(
|
||||||
<div className="flex column gaps">
|
<div className="flex column gaps">
|
||||||
<b>Cluster with invalid Kubeconfig Detected!</b>
|
<b>Cluster with Invalid Kubeconfig Detected!</b>
|
||||||
<p>Cluster <b>{cluster.name}</b> has invalid kubeconfig and cannot be displayed.
|
<p>Cluster <b>{cluster.name}</b> has invalid kubeconfig {contextName} and cannot be displayed.
|
||||||
Please fix the <a href="#" onClick={(e) => { e.preventDefault(); shell.showItemInFolder(cluster.kubeConfigPath); }}>kubeconfig</a> manually or remove the cluster. </p>
|
Please fix the <a href="#" onClick={(e) => { e.preventDefault(); shell.showItemInFolder(cluster.kubeConfigPath); }}>kubeconfig</a> manually and restart Lens
|
||||||
|
or remove the cluster.</p>
|
||||||
<p>Do you want to remove the cluster now?</p>
|
<p>Do you want to remove the cluster now?</p>
|
||||||
<div className="flex gaps row align-left box grow">
|
<div className="flex gaps row align-left box grow">
|
||||||
<Button active outlined label="Remove" onClick={()=> {
|
<Button active outlined label="Remove" onClick={()=> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user