46 lines
No EOL
1.3 KiB
TypeScript
46 lines
No EOL
1.3 KiB
TypeScript
import type {ContextMenu, ExtractActionTriggers} from "@models/misc/contextMenu"
|
|
|
|
export interface calendarShowEvent {
|
|
showInstanceIndex: Number,
|
|
showInstanceId: Number,
|
|
title: string,
|
|
color: string,
|
|
start: Date,
|
|
end: Date,
|
|
timed: boolean,
|
|
}
|
|
|
|
export type ShowEventActionTrigger = ExtractActionTriggers<typeof calendarShowEventMenu>;
|
|
|
|
export const calendarShowEventMenu: ContextMenu = {
|
|
entries: [
|
|
{
|
|
expanded: false,
|
|
menuText: 'Edit',
|
|
children: [
|
|
{
|
|
menuText: 'Edit instance',
|
|
actionTrigger: 'contextMenuEditInstance'
|
|
},
|
|
{
|
|
menuText: 'Edit show',
|
|
actionTrigger: 'contextMenuEditShow'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
expanded: false,
|
|
menuText: 'Delete',
|
|
children: [
|
|
{
|
|
menuText: 'Delete instance',
|
|
actionTrigger: 'contextMenuDeleteInstance'
|
|
},
|
|
{
|
|
menuText: 'Delete show',
|
|
actionTrigger: 'contextMenuDeleteShow'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}; |