diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-05 20:59:41 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-05 20:59:41 +0300 |
commit | bef42d9a36bf465878e0edc19c9e154f73f12b13 (patch) | |
tree | 0609f74a8e1824c2450c26dcffe469b2d9e5e92e /app/assets/javascripts/filtered_search/recent_searches_root.js | |
parent | b81535351023a3b19870ce052d8c3d0563391686 (diff) |
Fallback localstorage cases
Diffstat (limited to 'app/assets/javascripts/filtered_search/recent_searches_root.js')
-rw-r--r-- | app/assets/javascripts/filtered_search/recent_searches_root.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/filtered_search/recent_searches_root.js b/app/assets/javascripts/filtered_search/recent_searches_root.js index 4e38409e12a..b2e6f63aacf 100644 --- a/app/assets/javascripts/filtered_search/recent_searches_root.js +++ b/app/assets/javascripts/filtered_search/recent_searches_root.js @@ -29,12 +29,15 @@ class RecentSearchesRoot { } render() { + const state = this.store.state; this.vm = new Vue({ el: this.wrapperElement, - data: this.store.state, + data() { return state; }, template: ` <recent-searches-dropdown-content - :items="recentSearches" /> + :items="recentSearches" + :is-local-storage-available="isLocalStorageAvailable" + /> `, components: { 'recent-searches-dropdown-content': RecentSearchesDropdownContent, |