1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-03-02 03:40:21 +00:00

allow setting a job description

adding DESCRIPTION=foo to $JOBNAME.conf will display "foo"
in the job overview page on the frontend

Resolves #97
This commit is contained in:
Oliver Giles
2019-12-24 22:10:16 +02:00
parent 40b708c594
commit 2bf04d8157
7 changed files with 37 additions and 2 deletions

View File

@@ -507,6 +507,7 @@ const Jobs = function() {
var Job = function() {
var state = {
description: '',
jobsRunning: [],
jobsRecent: [],
lastSuccess: null,
@@ -524,6 +525,7 @@ var Job = function() {
},
methods: {
status: function(msg) {
state.description = msg.description;
state.jobsRunning = msg.running;
state.jobsRecent = msg.recent;
state.lastSuccess = msg.lastSuccess;