Skip to content

Commit fa1508d

Browse files
committed
feat: export for promql
1 parent e6649fb commit fa1508d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/api/editor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ const makePromParams = (code: string, promForm: PromForm, format?: string) => {
5959
end,
6060
step: promForm.step,
6161
db: appStore.database,
62-
// TODO: wait for API
6362
format,
6463
},
6564
} as AxiosRequestConfig
@@ -128,7 +127,6 @@ const runScript = (name: string) => {
128127
}
129128

130129
const runPromQL = (code: string, promForm: PromForm, format?: string) => {
131-
// TODO: wait for API
132130
return axios.post(promURL, {}, makePromParams(code, promForm, format))
133131
}
134132

src/views/dashboard/query/editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ a-card.editor-card(:bordered="false")
1717
template(#icon)
1818
icon-down
1919
template(#content)
20-
a-doption(:disabled="secondaryCodeRunning || queryType === 'promql'" @click="exportCsv")
20+
a-doption(:disabled="secondaryCodeRunning" @click="exportCsv")
2121
template(#icon)
2222
svg.icon
2323
use(href="#export")

0 commit comments

Comments
 (0)