feat(manager): built-in collection in the Media page and picker; signage screen settings in Devices (platform-v2 step 5.4a)
Media page and picker filter Everything / Your own / Built-in; built-in items are marked and can't be renamed or deleted. The Devices page offers the playlists for a signage screen (with its orientation and rotation). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,8 @@ export function configGroups(fields = []) {
|
||||
}
|
||||
|
||||
/** Options of a `ref` field: prep zones, categories, printers, customer display looks, or live devices of one app ("devices:<app>"). */
|
||||
export function refOptions(field, { zones = [], categories = [], printers = [], looks = [], devices = [], selfId = null } = {}) {
|
||||
export function refOptions(field, { zones = [], categories = [], printers = [], looks = [], playlists = [], devices = [], selfId = null } = {}) {
|
||||
if (field.choices_from === 'signage_playlists') return playlists.map(p => ({ value: String(p.id), label: p.name }))
|
||||
if (field.choices_from === 'display_looks') return looks.map(l => ({ value: String(l.id), label: l.name }))
|
||||
if (field.choices_from === 'prep_zones') return zones.map(z => ({ value: String(z.id), label: z.name }))
|
||||
if (field.choices_from === 'categories') return categories.map(c => ({ value: String(c.id), label: c.name }))
|
||||
|
||||
Reference in New Issue
Block a user