diff --git a/packages/webui/src/public/bus.js b/packages/webui/src/public/bus.js index 93df4371..f0261468 100644 --- a/packages/webui/src/public/bus.js +++ b/packages/webui/src/public/bus.js @@ -368,7 +368,7 @@ } const failTitle = err => err.status === 403 ? 'Bus refused the read' : ['not-configured', 'no-bus-host'].includes(err.code) ? 'No bus to read' : 'The read failed'; // A refusal fails closed: no kept data, the code in mono. Any other failure keeps the last read, labelled with its time. - const refusal = err => err.status === 403 || ['not-configured', 'no-bus-host'].includes(err.code); + const refusal = err => err.status === 403; // After a refusal nothing read before is shown anywhere: not in a view, the palette or the Inbox count. function forget() { last.clear(); inboxCount = null; } const failedView = err => `${head(failTitle(err))}
${empty('Nothing to show.', refusal(err) ? 'The view stays empty until the problem above is fixed.' : 'Read again, or come back when the bus answers.')}`;