From e0cc3ff6ddb425143e4f638af93c18077c08dd66 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 20 Jan 2018 13:01:33 -0800 Subject: [PATCH] simplify offline mode --- routes/_components/Timeline.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/routes/_components/Timeline.html b/routes/_components/Timeline.html index dfacc58d..a52db71b 100644 --- a/routes/_components/Timeline.html +++ b/routes/_components/Timeline.html @@ -48,8 +48,7 @@ key: status.id })), lastStatusId: (statuses) => statuses.length && statuses[statuses.length - 1].id, - label: (timeline, $currentInstance) => `${timelines[timeline].label} timeline for ${$currentInstance}`, - anyStatusesAreStale: (statuses) => statuses.some(status => status.pinafore_stale) + label: (timeline, $currentInstance) => `${timelines[timeline].label} timeline for ${$currentInstance}` }, store: () => store, components: { @@ -89,9 +88,8 @@ let instanceData = this.store.get('currentInstanceData') let timeline = this.get('timeline') let lastStatusId = this.get('lastStatusId') - let anyStatusesAreStale = this.get('anyStatusesAreStale') let statuses - if (!online || anyStatusesAreStale) { // if we're in offline mode, stay in offline mode to avoid weirdness + if (!online) { statuses = await database.getTimeline(instanceName, timeline, lastStatusId, FETCH_LIMIT) } else { try {