CnSavedViewShareFields
The sharing section of a saved view: a group picker over Nextcloud's sharee API (/ocs/v2.php/apps/files_sharing/api/v1/sharees, the source the Files share dialog uses) and, per chosen group, a "May edit" switch. Without it the group's members may only read the view; with it they may also save changes to its query, sort, columns and presentation. Never delete it, never change its audience.
Used by CnSaveViewDialog and CnSavedViewShareDialog. The section renders nothing when the sharee API answers no groups (sharing off, or no group the user may share with) and no group is already chosen.
<CnSavedViewShareFields v-model="sharedWith" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
modelValue | Array | [] | The chosen audience, [{ group, mode }] with mode read or write. |
disabled | Boolean | false | Disable the fields. |
Events
| Event | Payload | Description |
|---|---|---|
update:modelValue | Array<{ group, mode }> | The audience; [] when no group is picked. |