Commit fbac50f6 authored by Wenzhao Zang's avatar Wenzhao Zang Committed by Commit Bot

cros: Daily refresh should be disabled when fetching |dailyRefreshInfo|

Bug: 901211
Change-Id: Ib20f54b9ef5c7170296c65383a0af905e61f5481
Reviewed-on: https://chromium-review.googlesource.com/c/1313878Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Commit-Queue: Wenzhao (Colin) Zang <wzang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606148}
parent e19fa28d
...@@ -810,11 +810,13 @@ html[dir='rtl'] .v2 .top-header-contents .more-options { ...@@ -810,11 +810,13 @@ html[dir='rtl'] .v2 .top-header-contents .more-options {
outline: none; outline: none;
} }
.v2 .image-picker-offline .daily-refresh-slider { .v2 .image-picker-offline .daily-refresh-slider,
.v2 .daily-refresh-disabled .daily-refresh-slider {
pointer-events: none; pointer-events: none;
} }
.v2 .image-picker-offline img.slide-show { .v2 .image-picker-offline img.slide-show,
.v2 .daily-refresh-disabled img.slide-show {
-webkit-filter: grayscale(1); -webkit-filter: grayscale(1);
} }
......
...@@ -1392,6 +1392,7 @@ WallpaperManager.prototype.toggleLayoutButtonStates_ = function(layout) { ...@@ -1392,6 +1392,7 @@ WallpaperManager.prototype.toggleLayoutButtonStates_ = function(layout) {
*/ */
WallpaperManager.prototype.initializeDailyRefreshStates_ = function() { WallpaperManager.prototype.initializeDailyRefreshStates_ = function() {
var initializeDailyRefreshStatesImpl = dailyRefreshInfo => { var initializeDailyRefreshStatesImpl = dailyRefreshInfo => {
$('wallpaper-grid').classList.remove('daily-refresh-disabled');
if (dailyRefreshInfo) { if (dailyRefreshInfo) {
this.dailyRefreshInfo_ = dailyRefreshInfo; this.dailyRefreshInfo_ = dailyRefreshInfo;
} else { } else {
......
...@@ -127,7 +127,8 @@ found in the LICENSE file. ...@@ -127,7 +127,8 @@ found in the LICENSE file.
</div> </div>
</div> </div>
</div> </div>
<grid id="wallpaper-grid" class="image-picker" tabIndex="-1"></grid> <grid id="wallpaper-grid" class="image-picker daily-refresh-disabled"
tabIndex="-1"></grid>
<div class="progress-bar" hidden> <div class="progress-bar" hidden>
<div class="progress-track"></div> <div class="progress-track"></div>
</div> </div>
......
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