mirror of
https://github.com/olehomelchenko/astrolabe-nvc.git
synced 2025-12-21 21:22:23 +00:00
refactor: move chart builder button event handling to Alpine, rename chart builder initialization, and improve new snippet creation.
This commit is contained in:
@@ -247,15 +247,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
refreshMetadataBtn.addEventListener('click', refreshDatasetMetadata);
|
||||
}
|
||||
|
||||
// Build chart from dataset button
|
||||
const buildChartBtn = document.getElementById('build-chart-btn');
|
||||
if (buildChartBtn) {
|
||||
buildChartBtn.addEventListener('click', async () => {
|
||||
if (Alpine.store('datasets').currentDatasetId) {
|
||||
openChartBuilder(Alpine.store('datasets').currentDatasetId);
|
||||
}
|
||||
});
|
||||
}
|
||||
// Build chart from dataset button - now handled by Alpine @click in HTML
|
||||
|
||||
// New snippet from dataset button
|
||||
const newSnippetBtn = document.getElementById('new-snippet-btn');
|
||||
|
||||
Reference in New Issue
Block a user