mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix not highlighting the cluster settings
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
4ea20a5ce5
commit
14820a3094
@ -6,6 +6,6 @@ export const ClusterListNamespaceForbiddenChannel = "cluster:list-namespace-forb
|
|||||||
|
|
||||||
export type ListNamespaceForbiddenArgs = [clusterId: string];
|
export type ListNamespaceForbiddenArgs = [clusterId: string];
|
||||||
|
|
||||||
export function argArgsListNamespaceFordiddenArgs(args: unknown[]): args is ListNamespaceForbiddenArgs {
|
export function isListNamespaceForbiddenArgs(args: unknown[]): args is ListNamespaceForbiddenArgs {
|
||||||
return args.length === 1 && typeof args[0] === "string";
|
return args.length === 1 && typeof args[0] === "string";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,8 +50,8 @@
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
:target {
|
*:target {
|
||||||
color: $targetColor;
|
color: $textColorAccent;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { ipcRenderer, IpcRendererEvent } from "electron";
|
import { ipcRenderer, IpcRendererEvent } from "electron";
|
||||||
import { areArgsUpdateAvailableFromMain, UpdateAvailableChannel, onCorrect, UpdateAvailableFromMain, BackchannelArg, ClusterListNamespaceForbiddenChannel, argArgsListNamespaceFordiddenArgs, ListNamespaceForbiddenArgs } from "../../common/ipc";
|
import { areArgsUpdateAvailableFromMain, UpdateAvailableChannel, onCorrect, UpdateAvailableFromMain, BackchannelArg, ClusterListNamespaceForbiddenChannel, isListNamespaceForbiddenArgs, ListNamespaceForbiddenArgs } from "../../common/ipc";
|
||||||
import { Notifications, notificationsStore } from "../components/notifications";
|
import { Notifications, notificationsStore } from "../components/notifications";
|
||||||
import { Button } from "../components/button";
|
import { Button } from "../components/button";
|
||||||
import { isMac } from "../../common/vars";
|
import { isMac } from "../../common/vars";
|
||||||
@ -78,7 +78,7 @@ function ListNamespacesForbiddenHandler(event: IpcRendererEvent, ...[clusterId]:
|
|||||||
<b>Add Accessible Namespaces</b>
|
<b>Add Accessible Namespaces</b>
|
||||||
<p>Cluster <b>{clusterStore.active.name}</b> does not have permissions to list namespaces. Please add the namespaces you have access to.</p>
|
<p>Cluster <b>{clusterStore.active.name}</b> does not have permissions to list namespaces. Please add the namespaces you have access to.</p>
|
||||||
<div className="flex gaps row align-left box grow">
|
<div className="flex gaps row align-left box grow">
|
||||||
<Button active outlined label="Cluster Settings" onClick={()=> {
|
<Button active outlined label="Go to Accessible Namespaces Settings" onClick={()=> {
|
||||||
navigate(clusterSettingsURL({ params: { clusterId }, fragment: "accessible-namespaces" }));
|
navigate(clusterSettingsURL({ params: { clusterId }, fragment: "accessible-namespaces" }));
|
||||||
notificationsStore.remove(notificationId);
|
notificationsStore.remove(notificationId);
|
||||||
}} />
|
}} />
|
||||||
@ -103,6 +103,6 @@ export function registerIpcHandlers() {
|
|||||||
source: ipcRenderer,
|
source: ipcRenderer,
|
||||||
channel: ClusterListNamespaceForbiddenChannel,
|
channel: ClusterListNamespaceForbiddenChannel,
|
||||||
listener: ListNamespacesForbiddenHandler,
|
listener: ListNamespacesForbiddenHandler,
|
||||||
verifier: argArgsListNamespaceFordiddenArgs,
|
verifier: isListNamespaceForbiddenArgs,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
"borderColor": "#4c5053",
|
"borderColor": "#4c5053",
|
||||||
"borderFaintColor": "#373a3e",
|
"borderFaintColor": "#373a3e",
|
||||||
"mainBackground": "#1e2124",
|
"mainBackground": "#1e2124",
|
||||||
"targetColor": "#ffffff",
|
|
||||||
"contentColor": "#262b2f",
|
"contentColor": "#262b2f",
|
||||||
"layoutBackground": "#2e3136",
|
"layoutBackground": "#2e3136",
|
||||||
"layoutTabsBackground": "#252729",
|
"layoutTabsBackground": "#252729",
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
"borderColor": "#c9cfd3",
|
"borderColor": "#c9cfd3",
|
||||||
"borderFaintColor": "#dfdfdf",
|
"borderFaintColor": "#dfdfdf",
|
||||||
"mainBackground": "#f1f1f1",
|
"mainBackground": "#f1f1f1",
|
||||||
"targetColor": "#000000",
|
|
||||||
"contentColor": "#ffffff",
|
"contentColor": "#ffffff",
|
||||||
"layoutBackground": "#e8e8e8",
|
"layoutBackground": "#e8e8e8",
|
||||||
"layoutTabsBackground": "#f8f8f8",
|
"layoutTabsBackground": "#f8f8f8",
|
||||||
|
|||||||
@ -21,7 +21,6 @@ $colorTerminated: var(--colorTerminated);
|
|||||||
// Layout
|
// Layout
|
||||||
$mainBackground: var(--mainBackground);
|
$mainBackground: var(--mainBackground);
|
||||||
$contentColor: var(--contentColor);
|
$contentColor: var(--contentColor);
|
||||||
$targetColor: var(--targetColor);
|
|
||||||
$layoutBackground: var(--layoutBackground);
|
$layoutBackground: var(--layoutBackground);
|
||||||
$layoutTabsBackground: var(--layoutTabsBackground);
|
$layoutTabsBackground: var(--layoutTabsBackground);
|
||||||
$layoutTabsActiveColor: var(--layoutTabsActiveColor);
|
$layoutTabsActiveColor: var(--layoutTabsActiveColor);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user