mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-849 Relations | Fix | Read-only-value Relations should not be editable (#2835)
This commit is contained in:
parent
5c5b21221f
commit
6d11d1ab1e
3 changed files with 103 additions and 114 deletions
|
@ -9,6 +9,7 @@ fun StubRelationObject(
|
|||
format: Relation.Format = Relation.Format.SHORT_TEXT,
|
||||
isHidden: Boolean = false,
|
||||
isReadOnly: Boolean = false,
|
||||
isReadOnlyValue: Boolean = false,
|
||||
objectTypes: List<Id> = emptyList(),
|
||||
relationOptionsDict: List<Id> = emptyList(),
|
||||
sourceObject: Id = MockDataFactory.randomUuid(),
|
||||
|
@ -20,6 +21,7 @@ fun StubRelationObject(
|
|||
Relations.NAME to name,
|
||||
Relations.IS_HIDDEN to isHidden,
|
||||
Relations.IS_READ_ONLY to isReadOnly,
|
||||
Relations.RELATION_READ_ONLY_VALUE to isReadOnlyValue,
|
||||
Relations.RELATION_FORMAT_OBJECT_TYPES to objectTypes,
|
||||
Relations.RELATION_FORMAT to format.code.toDouble(),
|
||||
Relations.RELATION_OPTION_DICT to relationOptionsDict,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue