Commit 60f9fd26 authored by Nicholas Verne's avatar Nicholas Verne Committed by Commit Bot

Crostini upgrader: hide illustration

Hide the illustration when there's a progress bar. This is to stop the
visual noise when the illustration moves downwards.

Bug: 1103505
Change-Id: I9d144abe21207ff3ab0fec0f7258d15eea317db0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2321887
Auto-Submit: Nicholas Verne <nverne@chromium.org>
Commit-Queue: David Munro <davidmunro@google.com>
Reviewed-by: default avatarDavid Munro <davidmunro@google.com>
Cr-Commit-Position: refs/heads/master@{#792527}
parent 6d911f51
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
justify-content: flex-end; justify-content: flex-end;
margin: 32px 0; margin: 32px 0;
} }
</style> </style>
<div id="main"> <div id="main">
...@@ -127,7 +126,8 @@ ...@@ -127,7 +126,8 @@
</div> </div>
<img id="[[getIllustrationStyle_(state_)]]" <img id="[[getIllustrationStyle_(state_)]]"
src="[[getIllustrationURI_(state_)]]" alt=""> src="[[getIllustrationURI_(state_)]]" alt=""
hidden="[[hideIllustration_(state_)]]">
<div id="backup-checkbox" hidden="[[!isState_(state_, State.PROMPT)]]"> <div id="backup-checkbox" hidden="[[!isState_(state_, State.PROMPT)]]">
<cr-checkbox checked="{{backupCheckboxChecked_}}" > <cr-checkbox checked="{{backupCheckboxChecked_}}" >
<p class="checkbox-text"> <p class="checkbox-text">
......
...@@ -529,6 +529,20 @@ Polymer({ ...@@ -529,6 +529,20 @@ Polymer({
return 'images/linux_illustration.png'; return 'images/linux_illustration.png';
}, },
/**
* @param {State} state
* @return {boolean}
* @private
*/
hideIllustration_(state) {
switch (state) {
case State.BACKUP:
case State.UPGRADING:
return true;
}
return false;
},
/** @private */ /** @private */
updateProgressLine_() { updateProgressLine_() {
if (this.progressLineNumber_ < this.upgradeProgress_) { if (this.progressLineNumber_ < this.upgradeProgress_) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment