fix: update sql code & download prettily JSON
This commit is contained in:
@@ -1062,6 +1062,7 @@ async function saveQuery() {
|
|||||||
if (!res.ok) throw new Error(await res.text())
|
if (!res.ok) throw new Error(await res.text())
|
||||||
showNotification('OlapConstructor.notifications.saveSuccess', 'success')
|
showNotification('OlapConstructor.notifications.saveSuccess', 'success')
|
||||||
isDirty.value = false
|
isDirty.value = false
|
||||||
|
await fetchSql()
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
showNotification('OlapConstructor.notifications.saveError', 'error', { error: e.message })
|
showNotification('OlapConstructor.notifications.saveError', 'error', { error: e.message })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -649,7 +649,7 @@ public class MainVerticle extends AbstractVerticle {
|
|||||||
rc.response()
|
rc.response()
|
||||||
.putHeader("Content-Type", "application/json")
|
.putHeader("Content-Type", "application/json")
|
||||||
.putHeader("Content-Disposition", "attachment; filename=olap_export.json")
|
.putHeader("Content-Disposition", "attachment; filename=olap_export.json")
|
||||||
.end(fullJson.encode());
|
.end(fullJson.encodePrettily());
|
||||||
});
|
});
|
||||||
|
|
||||||
return router;
|
return router;
|
||||||
|
|||||||
Reference in New Issue
Block a user