add velero as hidden app

This commit is contained in:
Maarten de Waard 2022-10-13 12:24:00 +02:00
parent 1b18b3d06e
commit 31f61d74ba
No known key found for this signature in database
GPG key ID: 1D3E893A657CC8DA
5 changed files with 50 additions and 3 deletions

View file

@ -6,6 +6,7 @@ import { Banner, Modal, ConfirmationModal } from 'src/components';
import { Input, Select } from 'src/components/Form';
import { User, UserRole, useUsers } from 'src/services/users';
import { useAuth } from 'src/services/auth';
import { HIDDEN_APPS } from 'src/modules/dashboard/consts';
import { appAccessList, initialUserForm } from './consts';
import { UserModalProps } from './types';
@ -221,7 +222,7 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps)
<div className="flow-root mt-6">
<ul className="-my-5 divide-y divide-gray-200">
{fields.map((item, index) => {
if (item.name === 'dashboard') {
if (item.name != null && HIDDEN_APPS.indexOf(item.name) !== -1) {
return null;
}

View file

@ -10,7 +10,7 @@ export const DASHBOARD_QUICK_ACCESS = [
];
/** Apps that should not be shown on the dashboard */
export const HIDDEN_APPS = ['dashboard'];
export const HIDDEN_APPS = ['dashboard', 'velero'];
/** Apps that should be shown under "Utilities" */
export const UTILITY_APPS = ['monitoring'];