mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 13:58:47 +00:00
* Fix for editing stock location * Fix for editing part category (cherry picked from commit 8997f193c925e5b31e4deace56167ac45cf599d2) Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
parent
ff4df83ccd
commit
02876f3c54
@ -341,7 +341,9 @@ export default function CategoryDetail() {
|
||||
}}
|
||||
actions={categoryActions}
|
||||
editAction={editCategory.open}
|
||||
editEnabled={user.hasChangePermission(ModelType.partcategory)}
|
||||
editEnabled={
|
||||
!!category?.pk && user.hasChangePermission(ModelType.partcategory)
|
||||
}
|
||||
/>
|
||||
<PanelGroup
|
||||
pageKey='partcategory'
|
||||
|
@ -381,7 +381,10 @@ export default function Stock() {
|
||||
icon={location?.icon && <ApiIcon name={location?.icon} />}
|
||||
actions={locationActions}
|
||||
editAction={editLocation.open}
|
||||
editEnabled={user.hasChangePermission(ModelType.stocklocation)}
|
||||
editEnabled={
|
||||
!!location?.pk &&
|
||||
user.hasChangePermission(ModelType.stocklocation)
|
||||
}
|
||||
breadcrumbs={breadcrumbs}
|
||||
breadcrumbAction={() => {
|
||||
setTreeOpen(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user