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