Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2769)

Unified Diff: chrome/browser/resources/md_history/history_toolbar.html

Issue 2481693002: [MD History] Make forward/backward work in grouped mode. (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_toolbar.html
diff --git a/chrome/browser/resources/md_history/history_toolbar.html b/chrome/browser/resources/md_history/history_toolbar.html
index ab29c0ccb892cb8897b6df9797e7fc5ee40cb66d..c5a31c3f968f933b5e8772fdc4f6d01ce394094c 100644
--- a/chrome/browser/resources/md_history/history_toolbar.html
+++ b/chrome/browser/resources/md_history/history_toolbar.html
@@ -234,14 +234,23 @@
<span id="grouped-date">
{{getHistoryInterval_(queryStartTime, queryEndTime)}}
</span>
- <paper-icon-button icon="history:today" alt="$i18n{rangeToday}"
- title="$i18n{rangeToday}"></paper-icon-button>
- <paper-icon-button icon="history:chevron-left"
- alt="$i18n{rangePrevious}" title="$i18n{rangePrevious}"
- class="rtl-reversible"></paper-icon-button>
- <paper-icon-button icon="cr:chevron-right"
- alt="$i18n{rangeNext}" title="$i18n{rangeNext}"
- class="rtl-reversible"></paper-icon-button>
+ <paper-icon-button id="today-button" icon="history:today"
+ alt="$i18n{rangeToday}"
+ title="$i18n{rangeToday}"
+ on-tap="onTodayTap_"
+ disabled="[[isToday_(groupedOffset)]]"></paper-icon-button>
+ <paper-icon-button id="prev-button" icon="history:chevron-left"
+ alt="$i18n{rangePrevious}"
+ title="$i18n{rangePrevious}"
+ class="rtl-reversible"
+ on-tap="onPrevTap_"
+ disabled="[[!hasMoreResults]]"></paper-icon-button>
+ <paper-icon-button id="next-button" icon="cr:chevron-right"
+ alt="$i18n{rangeNext}"
+ title="$i18n{rangeNext}"
+ class="rtl-reversible"
+ on-tap="onNextTap_"
+ disabled="[[isToday_(groupedOffset)]]"></paper-icon-button>
</div>
</div>
</template>
« no previous file with comments | « chrome/browser/resources/md_history/grouped_list.js ('k') | chrome/browser/resources/md_history/history_toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698