Change job priority on queue page

This commit is contained in:
Eike Kettner
2020-09-05 16:00:41 +02:00
parent 1dcccbcf7d
commit 06879456a6
10 changed files with 140 additions and 11 deletions

View File

@ -2,6 +2,7 @@ module Data.Priority exposing
( Priority(..)
, all
, fromString
, next
, toName
)
@ -38,6 +39,16 @@ toName lang =
"High"
next : Priority -> Priority
next prio =
case prio of
High ->
Low
Low ->
High
all : List Priority
all =
[ Low, High ]