mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 08:23:55 +00:00
add fields to import modal (#685)
Co-authored-by: Fabian Posenau <fabian@fphome.de>
This commit is contained in:
@@ -32,6 +32,8 @@ export default function PreviewRundown({ rundown, userFields }: PreviewRundownPr
|
||||
<th>Time Start</th>
|
||||
<th>Time End</th>
|
||||
<th>Duration</th>
|
||||
<th>Warning Time</th>
|
||||
<th>Danger Time</th>
|
||||
<th>Is Public</th>
|
||||
<th>Skip</th>
|
||||
<th>Colour</th>
|
||||
@@ -94,6 +96,8 @@ export default function PreviewRundown({ rundown, userFields }: PreviewRundownPr
|
||||
<td>{millisToString(event.timeStart)}</td>
|
||||
<td>{millisToString(event.timeEnd)}</td>
|
||||
<td>{millisToString(event.duration)}</td>
|
||||
<td>{millisToString(event.timeWarning)}</td>
|
||||
<td>{millisToString(event.timeDanger)}</td>
|
||||
<td className={style.center}>{isPublic && <Tag>{isPublic}</Tag>}</td>
|
||||
<td>{skip && <Tag>{skip}</Tag>}</td>
|
||||
<td style={{ ...colour }}>{event.colour}</td>
|
||||
|
||||
@@ -19,6 +19,8 @@ export default function ExcelFileOptions(props: ExcelFileOptionsProps) {
|
||||
{ label: 'Start time', title: 'timeStart', value: optionsRef.current.timeStart },
|
||||
{ label: 'End Time', title: 'timeEnd', value: optionsRef.current.timeEnd },
|
||||
{ label: 'Duration', title: 'duration', value: optionsRef.current.duration },
|
||||
{ label: 'Warning Time', title: 'timeWarning', value: optionsRef.current.timeWarning },
|
||||
{ label: 'Danger Time', title: 'timeDanger', value: optionsRef.current.timeDanger },
|
||||
];
|
||||
|
||||
const titles: TableEntry[] = [
|
||||
|
||||
@@ -32,8 +32,8 @@ export const defaultExcelImportMap = {
|
||||
user7: 'user7',
|
||||
user8: 'user8',
|
||||
user9: 'user9',
|
||||
timeWarning: 'timeWarning',
|
||||
timeDanger: 'timeDanger',
|
||||
timeWarning: 'warning time',
|
||||
timeDanger: 'danger time',
|
||||
};
|
||||
|
||||
export function isExcelImportMap(obj: unknown): obj is ExcelImportMap {
|
||||
|
||||
Reference in New Issue
Block a user