Skip to content

Commit

Permalink
Rename ghosts to references
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Jan 12, 2024
1 parent 49d4f45 commit 7fa9453
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions plugins/rundown/app/components/RundownListItem/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ export function RundownListItem ({
bridge.commands.executeCommand('rundown.moveItem', rundownId, index + 1, newItemId)
}

async function handleCreateGhost () {
const newItemId = await bridge.items.createItem('bridge.types.ghost')
async function handleCreateReference () {
const newItemId = await bridge.items.createItem('bridge.types.reference')

await bridge.items.applyItem(newItemId, {
data: {
name: `Ghost for ${item?.data?.name}`,
name: `Reference to ${item?.data?.name}`,
targetId: item.id
}
})
Expand Down Expand Up @@ -146,7 +146,7 @@ export function RundownListItem ({
<ContextMenuItem text='Add after'>
<ContextAddMenu onAdd={newItemId => handleAdd(newItemId)} />
</ContextMenuItem>
<ContextMenuItem text='Create ghost' onClick={() => handleCreateGhost()} />
<ContextMenuItem text='Create reference' onClick={() => handleCreateReference()} />
<ContextMenuDivider />
<ContextMenuItem text='Remove' onClick={() => handleDelete(selection)} />
{
Expand Down
8 changes: 4 additions & 4 deletions plugins/types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const PLAY_HANDLERS = {
},

/*
Trigger a ghost
Trigger a reference
item's target
*/
'bridge.types.ghost': item => {
'bridge.types.reference': item => {
if (!item?.data?.targetId) {
return
}
Expand All @@ -48,10 +48,10 @@ const STOP_HANDLERS = {
},

/*
Trigger a ghost
Trigger a reference
item's target
*/
'bridge.types.ghost': item => {
'bridge.types.reference': item => {
if (!item?.data?.targetId) {
return
}
Expand Down
6 changes: 3 additions & 3 deletions plugins/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@
}
},
{
"id": "bridge.types.ghost",
"name": "Ghost",
"id": "bridge.types.reference",
"name": "Reference",
"inherits": "bridge.types.media",
"properties": {
"targetId": {
"name": "Target id",
"type": "string",
"ui.group": "Ghost"
"ui.group": "Reference"
}
}
},
Expand Down

0 comments on commit 7fa9453

Please sign in to comment.