Files
firecms/src/models/utils.ts
2021-02-25 13:16:11 +01:00

12 lines
281 B
TypeScript

import { Property } from "./models";
export function isReadOnly(property: Property): boolean {
if (property.readOnly)
return true;
if (property.dataType === "timestamp") {
if (Boolean(property.autoValue))
return true;
}
return false;
}