mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
[UI] Edit fix (#9367)
* Fix for editing stock location * Fix for editing part category
This commit is contained in:
parent
fc5b8479cb
commit
8997f193c9
@ -342,7 +342,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'
|
||||
|
@ -382,7 +382,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}
|
||||
lastCrumb={[
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user