Home
last modified time | relevance | path

Searched hist:"02012 ea5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/phosphor-webui/app/common/directives/
H A Dfirmware-list.html02012ea5 Wed Sep 19 16:14:31 CDT 2018 Gunnar Mills <gmills@us.ibm.com> Fix setting image priority

Let's say there are 2 images, A and B. A has a priority of 0
and B has a priority of 50. Lowest priority is the image used
to boot from and appears at the top of the image tables
(A in this case). If the user wanted image B to be the image
with the lowest priority, they would have to hit the up arrow
50 times in the old logic.

Move to setting the priority based on the image above, for
the up arrow, or below, for the down arrow.

If 2 images have the same priority, the image whose priority is
being updated wins and the image who already has that priority
gets bumped up 1, this is why when moving an image down we set
to the below image's priority +1, but don't need this -1 when
moving an image up in the table.

Tested: Can still change the priority.
Change-Id: If87e1d863ab909c276247072cc45e40b67cf686b
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>