|
|
|
@ -1,4 +1,12 @@
|
|
|
|
|
import { PanelOptions, ExportTask, DashboardQuery, DatasourceType, ExportStatus, PanelStatus, Dashboard } from '../types'; |
|
|
|
|
import { |
|
|
|
|
PanelOptions, |
|
|
|
|
ExportTask, |
|
|
|
|
DashboardQuery, |
|
|
|
|
DatasourceType, |
|
|
|
|
ExportStatus, |
|
|
|
|
PanelStatus, |
|
|
|
|
Dashboard, |
|
|
|
|
} from '../types'; |
|
|
|
|
|
|
|
|
|
import { convertTimestampToDate, convertTimeZoneTypeToName, getDashboardUid } from '../../../utils'; |
|
|
|
|
import { CLOSE_ICON_BASE_64, DOWNLOAD_ICON_BASE_64, SELECT_ICON_BASE_64, UNSELECT_ICON_BASE_64 } from '../../../icons'; |
|
|
|
@ -117,7 +125,6 @@ export function Panel({ width, height, timeRange, eventBus, timeZone }: Props) {
|
|
|
|
|
|
|
|
|
|
const queries: DashboardQuery[] = []; |
|
|
|
|
dashboard.panels?.forEach((panel: PanelModel) => { |
|
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
if (panel.type === PANEL_ID) { |
|
|
|
|
return; |
|
|
|
@ -436,13 +443,7 @@ export function Panel({ width, height, timeRange, eventBus, timeZone }: Props) {
|
|
|
|
|
<div> |
|
|
|
|
<Table width={width} height={height - 40} data={tasksDataFrame as DataFrame} /> |
|
|
|
|
<HorizontalGroup justify="flex-end"> |
|
|
|
|
<Button |
|
|
|
|
variant="primary" |
|
|
|
|
aria-label="Rich history button" |
|
|
|
|
icon="plus" |
|
|
|
|
style={{ marginTop: '8px' }} |
|
|
|
|
onClick={openDatasourceModal} |
|
|
|
|
> |
|
|
|
|
<Button variant="primary" icon="plus" style={{ marginTop: '8px' }} onClick={openDatasourceModal}> |
|
|
|
|
Add Task |
|
|
|
|
</Button> |
|
|
|
|
<Modal title="Select Queries" isOpen={isModalOpen} onDismiss={onCloseModal} className={styles.calendarModal}> |
|
|
|
|