Skip to content

Commit

Permalink
feat: Calculation tables can now be 'table' type, and use table*.yaml…
Browse files Browse the repository at this point in the history
… config

- Calculation tables can be specified as either 'topsheet' or 'table' in
a dashboard config
- table*.yaml is now a topsheet config
  • Loading branch information
billyc committed Mar 30, 2022
1 parent b575cab commit 2868708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/HTTPFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class SVNFileSystem {
// find all dashboards, topsheets, and viz-* yamls in each configuration folder.
// Overwrite keys as we go; identically-named configs from parent folders get superceded as we go.
const dashboard = 'dashboard*.y?(a)ml'
const topsheet = 'topsheet*.y?(a)ml'
const topsheet = '{topsheet,table}*.y?(a)ml'
const viz = 'viz*.y?(a)ml'
const config = 'simwrapper-config.y?(a)ml'

Expand Down
2 changes: 1 addition & 1 deletion src/views/DashBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default class VueComponent extends Vue {
}
private getCardComponent(card: any) {
if (card.type === 'topsheet') return 'TopSheet'
if (card.type === 'table' || card.type === 'topsheet') return 'TopSheet'
// might be a chart
if (chartTypes.indexOf(card.type) > -1) return 'card-' + card.type
Expand Down

0 comments on commit 2868708

Please sign in to comment.