diff --git a/src/actions.tsx b/src/actions.tsx index 7dc08c0..3c01b9f 100644 --- a/src/actions.tsx +++ b/src/actions.tsx @@ -8,6 +8,7 @@ export const Permission = { Delete: 1 << 4, RunCommand: 1 << 5, Admin: 1 << 6, + Cloud: 1 << 7, } const definitions = { diff --git a/src/common.tsx b/src/common.tsx index e3f2c54..b29ff07 100644 --- a/src/common.tsx +++ b/src/common.tsx @@ -164,9 +164,10 @@ function CustomField(props: WidgetProps){ {label: 'Stop', value: Permission.Stop}, {label: 'Browse', value: Permission.Browse}, {label: 'Delete', value: Permission.Delete}, - {label: 'RunCommand', value: Permission.RunCommand}, + {label: 'Run Command', value: Permission.RunCommand}, {label: 'Create', value: Permission.Create}, {label: 'Admin', value: Permission.Admin}, + {label: 'Cloud', value: Permission.Cloud}, ]}} registry={registry} value={convertNumber(props.value)} /> } diff --git a/src/login.tsx b/src/login.tsx index f2a2855..6aaa979 100644 --- a/src/login.tsx +++ b/src/login.tsx @@ -2,7 +2,6 @@ import { CssBaseline, Box, Typography, TextField, FormControlLabel, Checkbox, Co import React, { FormEventHandler, useContext } from "react"; import { Navigate } from "react-router-dom"; import { api, apiAuthenticatedContext } from "./common"; -import Cookies from 'js-cookie' export const fetchToken = async (username: string, password: string, remember: boolean) => { try { diff --git a/src/users.tsx b/src/users.tsx index a66e251..853c5b8 100644 --- a/src/users.tsx +++ b/src/users.tsx @@ -28,6 +28,9 @@ function getPermissionStrings(permissions: number){ if (permissions & Permission.RunCommand){ strings.push("Run Command") } + if (permissions & Permission.Cloud){ + strings.push("Cloud") + } return strings }