|
@@ -1,28 +1,27 @@
|
|
|
import React, { useContext, useEffect, useState } from "react";
|
|
import React, { useContext, useEffect, useState } from "react";
|
|
|
import styled from "styled-components";
|
|
import styled from "styled-components";
|
|
|
|
|
+import { useLocation } from "react-router";
|
|
|
import settings from "assets/settings-centered.svg";
|
|
import settings from "assets/settings-centered.svg";
|
|
|
|
|
|
|
|
-import DashboardHeader from "../DashboardHeader";
|
|
|
|
|
|
|
+import api from "shared/api";
|
|
|
|
|
+import { DetailedIngressError } from "shared/types";
|
|
|
|
|
+import { getQueryParam } from "shared/routing";
|
|
|
|
|
+import useAuth from "shared/auth/useAuth";
|
|
|
import { Context } from "shared/Context";
|
|
import { Context } from "shared/Context";
|
|
|
|
|
+
|
|
|
|
|
+import ClusterRevisionSelector from "./ClusterRevisionSelector";
|
|
|
|
|
+import DashboardHeader from "../DashboardHeader";
|
|
|
import TabSelector from "components/TabSelector";
|
|
import TabSelector from "components/TabSelector";
|
|
|
import ProvisionerSettings from "components/ProvisionerSettings";
|
|
import ProvisionerSettings from "components/ProvisionerSettings";
|
|
|
import ProvisionerStatus from "./ProvisionerStatus";
|
|
import ProvisionerStatus from "./ProvisionerStatus";
|
|
|
-import api from "shared/api";
|
|
|
|
|
-
|
|
|
|
|
import NodeList from "./NodeList";
|
|
import NodeList from "./NodeList";
|
|
|
-
|
|
|
|
|
import { NamespaceList } from "./NamespaceList";
|
|
import { NamespaceList } from "./NamespaceList";
|
|
|
import ClusterSettings from "./ClusterSettings";
|
|
import ClusterSettings from "./ClusterSettings";
|
|
|
-import useAuth from "shared/auth/useAuth";
|
|
|
|
|
import Metrics from "./Metrics";
|
|
import Metrics from "./Metrics";
|
|
|
-import { useLocation } from "react-router";
|
|
|
|
|
-import { getQueryParam } from "shared/routing";
|
|
|
|
|
|
|
|
|
|
import CopyToClipboard from "components/CopyToClipboard";
|
|
import CopyToClipboard from "components/CopyToClipboard";
|
|
|
import Loading from "components/Loading";
|
|
import Loading from "components/Loading";
|
|
|
|
|
|
|
|
-import { DetailedIngressError } from "shared/types";
|
|
|
|
|
-
|
|
|
|
|
type TabEnum = "nodes" | "settings" | "namespaces" | "metrics" | "incidents" | "configuration";
|
|
type TabEnum = "nodes" | "settings" | "namespaces" | "metrics" | "incidents" | "configuration";
|
|
|
|
|
|
|
|
var tabOptions: {
|
|
var tabOptions: {
|
|
@@ -186,6 +185,7 @@ export const Dashboard: React.FunctionComponent = () => {
|
|
|
) && (
|
|
) && (
|
|
|
<ProvisionerStatus />
|
|
<ProvisionerStatus />
|
|
|
)}
|
|
)}
|
|
|
|
|
+ <ClusterRevisionSelector />
|
|
|
<TabSelector
|
|
<TabSelector
|
|
|
options={currentTabOptions}
|
|
options={currentTabOptions}
|
|
|
currentTab={currentTab}
|
|
currentTab={currentTab}
|