Skip to content

Commit

Permalink
cmd/dcrdata/public/js: Set chart mode before display on chart view
Browse files Browse the repository at this point in the history
Signed-off-by: Philemon Ukane <[email protected]>
  • Loading branch information
ukane-philemon authored Sep 23, 2024
1 parent 8f1671a commit e9c7312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/dcrdata/public/js/controllers/charts_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ export default class extends Controller {
}

this.settings = TurboQuery.nullTemplate(['chart', 'zoom', 'scale', 'bin', 'axis', 'visibility'])
this.settings.mode = this.data.get('mode')
this.query.update(this.settings)
this.settings.chart = this.settings.chart || 'ticket-price'
this.zoomCallback = this._zoomCallback.bind(this)
Expand Down
2 changes: 1 addition & 1 deletion cmd/dcrdata/views/extras.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
data-turbolinks-suppress-warning
></script>
<script
src="/dist/js/app.935cecaf5560c863.bundle.js"
src="/dist/js/app.b830f274488c952b.bundle.js"
data-turbolinks-eval="false"
data-turbolinks-suppress-warning
></script>
Expand Down

0 comments on commit e9c7312

Please sign in to comment.