Skip to content

Commit

Permalink
Updated upcoming
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockster160 committed Oct 19, 2024
1 parent 9a2c442 commit 33a7f53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/javascript/src/pages/dashboard/cells/upcoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { dash_colors, text_height, clamp } from "../vars"

cell = Cell.register({
title: "Upcoming",
text: "\n\n\n" + Text.center(Text.red("== [FIXME] ==")),
text: "Loading...",
data: { lines: [] },
refreshInterval: Time.hour(),
reloader: function() {
Expand All @@ -32,7 +32,9 @@ import { dash_colors, text_height, clamp } from "../vars"
},
onload: function() {
cell.monitor = Monitor.subscribe("upcoming", {
connected: function() {},
connected: function() {
cell.monitor?.send({ request: "get" })
},
disconnected: function() {},
received: function(data) {
if (data.data.lines) {
Expand Down

0 comments on commit 33a7f53

Please sign in to comment.