Skip to content

Commit

Permalink
Fixes #11725: \"Priority\" level mean the contrary to what is thought
Browse files Browse the repository at this point in the history
  • Loading branch information
fanf committed Nov 14, 2017
1 parent 6933fc5 commit e5e0aa4
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,23 @@ class DirectiveEditForm(
}
}

private[this] val piPriority =
private[this] val piPriority = {
val priorities = List(
( 0, "Highest")
, ( 1, "+4")
, ( 2, "+3")
, ( 3, "+2")
, ( 4, "+1")
, ( 5, "Default")
, ( 6, "-1")
, ( 7, "-2")
, ( 8, "-3")
, ( 9, "-4")
, (10, "Lowest")
)
new WBSelectObjField(
"Priority"
, (0 to 10).map(i => (i, i.toString))
, priorities
, defaultValue = directive.priority
) {
override val displayHtml =
Expand All @@ -409,14 +422,14 @@ class DirectiveEditForm(
<h4> Priority </h4>
<p>Priority determines which <b> unique </b> Directive will be applied.</p>
<p>Unique Directives can be applied only once (ie. Time Settings), so only the highest priority will be appllied.</p>
<p>Highest Priority is 0.</p>
</div>
</span>
</div>
override def className = "form-control"
override def labelClassName = "col-xs-12"
override def subContainerClassName = "col-xs-12"
}
}

private[this] var newTags = directive.tags

Expand Down

0 comments on commit e5e0aa4

Please sign in to comment.