diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-03-02 12:42:09 -0600 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2018-03-05 11:49:46 -0600 |
commit | e7c5c52d2bf35fada17637b0d205bc2ccc6c2882 (patch) | |
tree | aa083682ffa5f954834a5c3f0752fc141c181cfd | |
parent | e41f0b0bf50c026844c313a63e267c0d3bdafc14 (diff) | |
download | phosphor-webui-e7c5c52d2bf35fada17637b0d205bc2ccc6c2882.tar.gz phosphor-webui-e7c5c52d2bf35fada17637b0d205bc2ccc6c2882.zip |
Fix "Boot priority" down arrow
The way free priority works is if an image is set to a
priority another image has, that other image's priority
is increased by 1.
Let's say there are 2 images, x and y. x has a priority of
2, and y has a priority of 3.
x gets set to priority 3 (this is how the down arrow works,
it sets the priority to the current priority + 1) now x
has a priority of 3 and y gets increased to a priority of 4.
x and y in this case never switched priority order (i.e. x
still boots first).
To get the down arrow to work currently, set the priority
to + 2 on the down arrow. In the case above this would make
x and y 4 and 3, respectfully, therefore, changing their
priority order (i.e. y boots first now).
This change is not needed for the up arrow, can you figure
out why?
Tested: Down arrow works now.
Change-Id: Ia01dba6694b8c3b68f43fab78d8f0ae022ccb82c
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r-- | app/common/directives/firmware-list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/common/directives/firmware-list.html b/app/common/directives/firmware-list.html index 40fd1ac..2856eaa 100644 --- a/app/common/directives/firmware-list.html +++ b/app/common/directives/firmware-list.html @@ -29,7 +29,7 @@ ng-show="firmware.activationStatus == 'Functional' || firmware.activationStatus == 'Active'"> <span class="accessible-text">firmware up in priority</span></div> <div class="icon icon__down-arrow" aria-hidden="true" ng-class="{'icon-as-spacer':$last}" - ng-click="!$last && changePriority(firmware.imageId, firmware.Version, firmware.Priority, firmware.Priority + 1)" + ng-click="!$last && changePriority(firmware.imageId, firmware.Version, firmware.Priority, firmware.Priority + 2)" ng-show="firmware.activationStatus == 'Functional' || firmware.activationStatus == 'Active'"> <span class="accessible-text">firmware down in priority</span></div> </div> |