Add spinner when fetching more suggestions
When more suggestions are fetched on the NTP, a spinner is displayed
to signal the user the suggestions are being fetched.
This spinner prevents the user from interacting with the button.
If the suggestions couldn't be fetched (network error...) a toast is
displayed.
If there is no more suggestions, the footer is removed.
Bug: 721229
Change-Id: Ib58fb446e76bbb752f37105135a58068713c96b5
Reviewed-on: https://chromium-review.googlesource.com/602130
Commit-Queue: Gauthier Ambard <[email protected]>
Reviewed-by: Sylvain Defresne <[email protected]>
Reviewed-by: Marc Treib <[email protected]>
Reviewed-by: Elodie Banel <[email protected]>
Cr-Commit-Position: refs/heads/master@{#492350}
diff --git a/components/ntp_snippets_strings.grdp b/components/ntp_snippets_strings.grdp
index 5f04725..bda97c2a 100644
--- a/components/ntp_snippets_strings.grdp
+++ b/components/ntp_snippets_strings.grdp
@@ -15,6 +15,10 @@
</message>
</if>
+ <message name="IDS_NTP_ARTICLE_SUGGESTIONS_NOT_AVAILABLE" desc="On the New Tab Page, text of a toast transiently shown to the user to indicate that no article could be fetched.">
+ Articles aren't available right now
+ </message>
+
<message name="IDS_NTP_ARTICLE_SUGGESTIONS_SECTION_HEADER" desc="Header of the articles section, which is a list of news articles displayed as cards on the New Tab Page.">
Articles for you
</message>