From beede38643d6bbb5ff719b66aae5bea8fd6678e4 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Sun, 1 Nov 2015 11:29:06 +0100 Subject: [PATCH] propagate job_completed message to run page --- src/laminar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/laminar.cpp b/src/laminar.cpp index 9ae2abd..85a1e5d 100644 --- a/src/laminar.cpp +++ b/src/laminar.cpp @@ -596,7 +596,11 @@ void Laminar::assignNewJobs() { j.EndObject(); const char* msg = j.str(); for(LaminarClient* c : clients) { - if(c->scope.wantsStatus(run->name, run->build)) + if(c->scope.wantsStatus(run->name, run->build) + // The run page also should know that another job has started + // (so maybe it can show a previously hidden "next" button). + // Hence this small hack: + || (c->scope.type == MonitorScope::Type::RUN && c->scope.job == run->name)) c->sendMessage(msg); }