• Curt Clemens's avatar
    [Nearby] Stop progress spinner on error · 1dcd0fac
    Curt Clemens authored
    Add new properties |progress| and |hasError| to nearby-progress, which
    allow setting a specific progress percentage and disabling the spinner
    during error states respectively.
    
    |progress| defaults to null. When null, a waiting animation is shown
    where the progress bar spins around the icon. |progress| will be used
    in future CLs to set specific progress percentages, but for now, only
    the default is used.
    
    |hasError|=true causes the progress bar to be red, icons to be grey,
    progress to be 100%, and stops any spinning animation.
    
    Bug: b/163036847
    Change-Id: I74d88a1e4efefb6a5e73ba1fd77880b3397bc353
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2542850
    Commit-Queue: Curt Clemens <cclem@google.com>
    Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
    Reviewed-by: default avatarJames Vecore <vecore@google.com>
    Cr-Commit-Position: refs/heads/master@{#828502}
    1dcd0fac
nearby_device_icon.html 468 Bytes