mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-15 01:58:59 +08:00
12 lines
281 B
TypeScript
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;
|
|
}
|