Skip to content

Commit

Permalink
update redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Hand committed Jul 25, 2022
1 parent 6d1f54e commit 6982186
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 2 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Netlify settings for single-page application
/* /index.html 200
6 changes: 3 additions & 3 deletions src/components/Dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ let selectedMonth = dataMonths[parseInt(route.params["month"]) - 1];
watch(
() => route.params,
async () => {
selectedYear = parseInt(route.params["year"]);
selectedMonth = dataMonths[parseInt(route.params["month"]) - 1];
await getData();
let y = parseInt(route.params["year"]);
let m = dataMonths[parseInt(route.params["month"]) - 1];
router.go(`/${y}/${m}`);
}
);
Expand Down
11 changes: 0 additions & 11 deletions src/components/Dashboard/updateDashboard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Crossfilter and jquery
import crossfilter from "crossfilter2";
import $ from "jquery";
import { ref, reactive } from "vue";

// dc.js
Expand Down Expand Up @@ -50,16 +49,6 @@ function resetChart(id) {
}
}

function showChartReset(id) {
let charts = dc.chartRegistry.list();
for (let i = 0; i < charts.length; i++) {
if (charts[i].anchorName() == id) {
if (charts[i].hasFilter()) return true;
else return false;
}
}
}

// Update the dashboard
function updateDashboard(data) {
// Initialize the map and set it up
Expand Down

0 comments on commit 6982186

Please sign in to comment.