Make workflow objects read only in frontend (#7545)
Expected behavior: - workflows can be added and deleted. Only name field is editable - versions and runs cannot be added nor deleted. No fields are editable Added two new utils for those needs: - `isReadOnlyObject` the similar logic between remote objects, versions and runs - `isFieldReadonlyFromObjectMetadataName` to easily block field edition from object context
This commit is contained in:
@ -1,5 +0,0 @@
|
||||
import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
|
||||
|
||||
export const useObjectIsRemote = (objectMetadataItem: ObjectMetadataItem) => {
|
||||
return objectMetadataItem.isRemote ?? false;
|
||||
};
|
||||
Reference in New Issue
Block a user