ux: admin/fs: added info

Massimo Melina committed Aug 18, 2023 at 19:50 UTC 0b5ec7e34bb872daf4893f64c72a86362691a06b
1 file changed +2 -2
admin/src/VfsPage.ts
+2 -2
@@ -1,7 +1,7 @@
1 // This file is part of HFS - Copyright 2021-2023, Massimo Melina <a@rejetto.com> - License https://www.gnu.org/licenses/gpl-3.0.txt
2
3 import { createElement as h, Fragment, useEffect, useMemo, useState } from 'react'
4 -import { apiCall, useApi, useApiEx } from './api'
4 +import { apiCall, useApiEx } from './api'
5 import {
6 Alert,
7 Button,
@@ -22,7 +22,6 @@ import FileForm from './FileForm'
22 import { Close, Delete } from '@mui/icons-material'
23 import { alertDialog, confirmDialog } from './dialog'
24 import { Flex } from './misc'
25 -import { VfsPerm } from '../../src/vfs'
25
26 let selectOnReload: string[] | undefined
27
@@ -130,6 +129,7 @@ export default function VfsPage() {
129 alert && h(Grid, { item: true, mb: 2, xs: 12 }, h(Alert, alert)),
130 h(Grid, { item:true, [sideBreakpoint]: 6, lg: 5 },
131 h(Typography, { variant: 'h6', mb:1, }, "Virtual File System"),
132 + h(Alert, { severity: 'info' }, "If you rename or delete here, it's virtual, and only affects what is presented to the users"),
133 h(VfsMenuBar),
134 vfs && h(VfsTree, { id2node })),
135 isSideBreakpoint && sideContent && h(Grid, { item:true, [sideBreakpoint]: 6, lg: 7, maxWidth:'100%' },