|
|
@ -38,10 +38,7 @@ export function Panel({ options, data, width, height, timeRange, onChangeTimeRan |
|
|
|
return makeRequest<TableRowConfig[]>('/tasks', {}); |
|
|
|
return makeRequest<TableRowConfig[]>('/tasks', {}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
getTasks().then(tasks => setTasks(tasks)).catch(err => console.error(err)); |
|
|
|
|
|
|
|
|
|
|
|
getTasks().then(tasks => setTasks(tasks)).catch(err => console.error(err)); |
|
|
|
|
|
|
|
}, 2000); |
|
|
|
|
|
|
|
}, []); |
|
|
|
}, []); |
|
|
|
|
|
|
|
|
|
|
|
function onAddTaskClick(): void { |
|
|
|
function onAddTaskClick(): void { |
|
|
@ -54,7 +51,7 @@ export function Panel({ options, data, width, height, timeRange, onChangeTimeRan |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
{dataFrame === null ?
|
|
|
|
{dataFrame === null ? |
|
|
|
// TODO: if datasource responds with error, display the error
|
|
|
|
// TODO: if datasource responds with error, display the error
|
|
|
|
<LoadingPlaceholder text="Loading..."></LoadingPlaceholder> : |
|
|
|
<LoadingPlaceholder text="Loading..."></LoadingPlaceholder> : |
|
|
|
<div> |
|
|
|
<div> |
|
|
|