{
marginTop: "28px",
marginRight: "8px",
display: "flex",
- minHeight: "36px",
+ height: "36px",
"&.mini": {
flexFlow: "column",
@@ -69,7 +100,11 @@ const MenuToggle = ({ isOpen, isOperatorMode, onToggle }: MenuToggleProps) => {
>
{isOpen ? (
- {isOperatorMode ? : }
+ {operatorMode ? (
+
+ ) : (
+
+ )}
) : (
@@ -82,6 +117,8 @@ const MenuToggle = ({ isOpen, isOperatorMode, onToggle }: MenuToggleProps) => {
{
},
"& svg": {
fill: "#ffffff",
+ height: "18px",
+ width: "18px",
},
}}
onClick={() => {
diff --git a/portal-ui/src/systemSlice.ts b/portal-ui/src/systemSlice.ts
index 53a18b691..99da65957 100644
--- a/portal-ui/src/systemSlice.ts
+++ b/portal-ui/src/systemSlice.ts
@@ -17,6 +17,7 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit";
import { snackBarMessage, SRInfoStateType } from "./types";
import { ErrorResponseHandler } from "./common/types";
import { AppState } from "./store";
+import { SubnetInfo } from "./screens/Console/License/types";
// determine whether we have the sidebar state stored on localstorage
const initSideBarOpen = localStorage.getItem("sidebarOpen")
@@ -38,6 +39,7 @@ export interface SystemState {
serverDiagnosticStatus: string;
distributedSetup: boolean;
siteReplicationInfo: SRInfoStateType;
+ licenseInfo: null | SubnetInfo;
}
const initialState: SystemState = {
@@ -63,6 +65,7 @@ const initialState: SystemState = {
},
serverDiagnosticStatus: "",
distributedSetup: false,
+ licenseInfo: null,
};
export const systemSlice = createSlice({
@@ -135,6 +138,9 @@ export const systemSlice = createSlice({
setSiteReplicationInfo: (state, action: PayloadAction) => {
state.siteReplicationInfo = action.payload;
},
+ setLicenseInfo: (state, action: PayloadAction) => {
+ state.licenseInfo = action.payload;
+ },
},
});
@@ -153,6 +159,7 @@ export const {
setServerDiagStat,
globalSetDistributedSetup,
setSiteReplicationInfo,
+ setLicenseInfo,
} = systemSlice.actions;
export const selDistSet = (state: AppState) => state.system.distributedSetup;
diff --git a/portal-ui/src/types.ts b/portal-ui/src/types.ts
index 50997334c..6ae282942 100644
--- a/portal-ui/src/types.ts
+++ b/portal-ui/src/types.ts
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
import { ErrorResponseHandler } from "./common/types";
+import { SubnetInfo } from "./screens/Console/License/types";
// along with this program. If not, see .
export interface snackBarMessage {
@@ -57,6 +58,7 @@ export const SET_SNACK_MODAL_MESSAGE = "SET_SNACK_MODAL_MESSAGE";
export const SET_MODAL_ERROR_MESSAGE = "SET_MODAL_ERROR_MESSAGE";
export const GLOBAL_SET_DISTRIBUTED_SETUP = "GLOBAL/SET_DISTRIBUTED_SETUP";
export const SET_SITE_REPLICATION_INFO = "SET_SITE_REPLICATION_INFO";
+export const SET_LICENSE_INFO = "SET_LICENSE_INFO";
interface UserLoggedAction {
type: typeof USER_LOGGED;
@@ -123,6 +125,11 @@ interface SetSiteReplicationInfo {
siteReplicationInfo: SRInfoStateType;
}
+interface SetLicenseInfo {
+ type: typeof SET_LICENSE_INFO;
+ licenseInfo: SubnetInfo;
+}
+
export type SystemActionTypes =
| UserLoggedAction
| OperatorModeAction
@@ -136,4 +143,5 @@ export type SystemActionTypes =
| SetModalSnackMessage
| SetModalErrorMessage
| SetDistributedSetup
- | SetSiteReplicationInfo;
+ | SetSiteReplicationInfo
+ | SetLicenseInfo;