You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a relation in a new collection the tooltip always displays the selected collection in the background instead of just saying field.
For example, if you log in the active collection is automatically set to users. When you create a new collection and add a relation, the cascade delete tooltip will say something like:
Whether on field record deletion to delete also the user (or the selected active collection in the background) associated records.
When it should be:
Whether on field record deletion to delete also the field associated records.
I can't screenshot the tooltip unfortunately but I believe the issue is in
I was thinking of maybe passing a prop but I don't want to ruin this clean foreach loop by having one of the schemas have one prop separate from the others (maybe that's just me)
Maybe another way would be clear $activeCollection on creating a new collection?
Maybe there's a better way since I'm not too familiar with the UI codebase but I reckon it would be fine to just remove the || and just have it say "field"
The text was updated successfully, but these errors were encountered:
I've updated the message (+ added some additional info for multiple relation fields) in master.
In general the relation field options panel will slightly change in the next release as I'm planning of moving the "Display fields" to be as global collection option to reduce the duplication when different relations to the same collection are created.
When adding a relation in a new collection the tooltip always displays the selected collection in the background instead of just saying field.
For example, if you log in the active collection is automatically set to users. When you create a new collection and add a relation, the cascade delete tooltip will say something like:
When it should be:
I can't screenshot the tooltip unfortunately but I believe the issue is in
pocketbase/ui/src/components/collections/schema/SchemaFieldRelation.svelte
Line 209 in 7d6b12a
because
$activeCollection
always has a value .I was thinking of maybe passing a prop but I don't want to ruin this clean foreach loop by having one of the schemas have one prop separate from the others (maybe that's just me)
pocketbase/ui/src/components/collections/CollectionFieldsTab.svelte
Lines 133 to 139 in 7d6b12a
Maybe another way would be clear
$activeCollection
on creating a new collection?Maybe there's a better way since I'm not too familiar with the UI codebase but I reckon it would be fine to just remove the
||
and just have it say"field"
The text was updated successfully, but these errors were encountered: