Disable auditLogs feature across multiple components in the Dashboard for improved performance and user experience.
This commit is contained in:
parent
7296ee73b8
commit
67058d72a4
@ -48,7 +48,7 @@ const InvoiceInfo = () => {
|
||||
invoiceShipments: true,
|
||||
payments: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -39,7 +39,7 @@ const PaymentInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('PaymentInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -35,7 +35,7 @@ const TaxRecordInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -34,7 +34,7 @@ const FilamentStockInfo = () => {
|
||||
info: true,
|
||||
events: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -35,7 +35,7 @@ const OrderItemInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ const PartStockInfo = () => {
|
||||
info: true,
|
||||
stocks: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -10,7 +10,10 @@ import InfoCollapse from '../../common/InfoCollapse.jsx'
|
||||
import ObjectInfo from '../../common/ObjectInfo.jsx'
|
||||
import ObjectProperty from '../../common/ObjectProperty.jsx'
|
||||
import ViewButton from '../../common/ViewButton.jsx'
|
||||
import { getModelProperty, getModelByName } from '../../../../database/ObjectModels.js'
|
||||
import {
|
||||
getModelProperty,
|
||||
getModelByName
|
||||
} from '../../../../database/ObjectModels.js'
|
||||
import PostProductStock from './PostProductStock.jsx'
|
||||
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
|
||||
import NoteIcon from '../../../Icons/NoteIcon.jsx'
|
||||
@ -44,7 +47,7 @@ const ProductStockInfo = () => {
|
||||
info: true,
|
||||
partStocks: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ const PurchaseOrderInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true,
|
||||
auditLogs: false,
|
||||
invoices: true,
|
||||
stockEvents: true
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ const PurchaseOrderInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ const ShipmentInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ const StockAuditInfo = () => {
|
||||
info: true,
|
||||
stocks: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ const StockLocationInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -8,7 +8,10 @@ import InfoCollapse from '../../common/InfoCollapse.jsx'
|
||||
import ObjectInfo from '../../common/ObjectInfo.jsx'
|
||||
import ObjectProperty from '../../common/ObjectProperty.jsx'
|
||||
import ViewButton from '../../common/ViewButton.jsx'
|
||||
import { getModelProperty, getModelByName } from '../../../../database/ObjectModels.js'
|
||||
import {
|
||||
getModelProperty,
|
||||
getModelByName
|
||||
} from '../../../../database/ObjectModels.js'
|
||||
import PostStockTransfer from './PostStockTransfer.jsx'
|
||||
import InfoCircleIcon from '../../../Icons/InfoCircleIcon.jsx'
|
||||
import NoteIcon from '../../../Icons/NoteIcon.jsx'
|
||||
@ -39,7 +42,7 @@ const StockTransferInfo = () => {
|
||||
info: true,
|
||||
lines: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ const AppPasswordInfo = () => {
|
||||
'AppPasswordInfo',
|
||||
{
|
||||
info: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -37,7 +37,7 @@ const CourierServiceInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -34,7 +34,7 @@ const CourierInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('CourierInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -38,7 +38,7 @@ const DocumentJobInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -39,7 +39,7 @@ const DocumentPrinterInfo = () => {
|
||||
info: true,
|
||||
stocks: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ const DocumentSizeInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -33,7 +33,7 @@ const DocumentTemplateDesign = () => {
|
||||
preview: true,
|
||||
editor: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ const DocumentTemplateInfo = () => {
|
||||
info: true,
|
||||
stocks: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -24,13 +24,15 @@ const FilamentSkuInfo = () => {
|
||||
const location = useLocation()
|
||||
const objectFormRef = useRef(null)
|
||||
const actionHandlerRef = useRef(null)
|
||||
const filamentSkuId = new URLSearchParams(location.search).get('filamentSkuId')
|
||||
const filamentSkuId = new URLSearchParams(location.search).get(
|
||||
'filamentSkuId'
|
||||
)
|
||||
const [collapseState, updateCollapseState] = useCollapseState(
|
||||
'FilamentSkuInfo',
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -43,7 +43,7 @@ const FilamentInfo = () => {
|
||||
filamentSkus: true,
|
||||
stocks: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ const FileInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('FileInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -39,7 +39,7 @@ const HostInfo = () => {
|
||||
printers: true,
|
||||
documentPrinters: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
|
||||
const [hostOTPOpen, setHostOTPOpen] = useState(false)
|
||||
|
||||
@ -30,11 +30,14 @@ const MaterialInfo = () => {
|
||||
const objectFormRef = useRef(null)
|
||||
const actionHandlerRef = useRef(null)
|
||||
const materialId = new URLSearchParams(location.search).get('materialId')
|
||||
const [collapseState, updateCollapseState] = useCollapseState('MaterialInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
})
|
||||
const [collapseState, updateCollapseState] = useCollapseState(
|
||||
'MaterialInfo',
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
editLoading: false,
|
||||
|
||||
@ -28,7 +28,7 @@ const NoteTypeInfo = () => {
|
||||
'NoteTypeInfo',
|
||||
{
|
||||
info: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -38,7 +38,7 @@ const NoteInfo = () => {
|
||||
info: true,
|
||||
content: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -28,7 +28,7 @@ const PartSkuInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('PartSkuInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -33,7 +33,7 @@ const PartInfo = () => {
|
||||
info: true,
|
||||
partSkus: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -32,7 +32,7 @@ const ProductCategoryInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -34,7 +34,7 @@ const ProductSkuInfo = () => {
|
||||
info: true,
|
||||
parts: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -32,7 +32,7 @@ const ProductInfo = () => {
|
||||
info: true,
|
||||
productSkus: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [newProductSkuOpen, setNewProductSkuOpen] = useState(false)
|
||||
const productSkusTableRef = useRef()
|
||||
|
||||
@ -33,7 +33,7 @@ const TaxRateInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('TaxRateInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -37,7 +37,7 @@ const UserInfo = () => {
|
||||
info: true,
|
||||
appPasswords: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -33,7 +33,7 @@ const VendorInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('VendorInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -40,7 +40,7 @@ const GCodeFileInfo = () => {
|
||||
info: true,
|
||||
parts: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ const JobInfo = () => {
|
||||
info: true,
|
||||
subJobs: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -35,7 +35,7 @@ const PrinterInfo = () => {
|
||||
info: true,
|
||||
stocks: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -30,7 +30,7 @@ const SubJobInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('SubJobInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -33,7 +33,7 @@ const ClientInfo = () => {
|
||||
const [collapseState, updateCollapseState] = useCollapseState('ClientInfo', {
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
@ -193,4 +193,3 @@ const ClientInfo = () => {
|
||||
}
|
||||
|
||||
export default ClientInfo
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ const ListingVarientInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -43,7 +43,7 @@ const ListingInfo = () => {
|
||||
info: true,
|
||||
listingVarients: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
})
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
isEditing: false,
|
||||
|
||||
@ -50,7 +50,7 @@ const MarketplaceInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true
|
||||
auditLogs: false
|
||||
}
|
||||
)
|
||||
const [objectFormState, setEditFormState] = useState({
|
||||
|
||||
@ -55,7 +55,7 @@ const SalesOrderInfo = () => {
|
||||
{
|
||||
info: true,
|
||||
notes: true,
|
||||
auditLogs: true,
|
||||
auditLogs: false,
|
||||
invoices: true,
|
||||
stockEvents: true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user