From 1b601a91b990ef2c53c3e7c5ffbefed0216618dc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 3 May 2019 20:01:31 -0600 Subject: [PATCH] Update Timeline --- resources/assets/js/components/Timeline.vue | 20 +++++++++++-- resources/views/settings/labs.blade.php | 31 ++++++++++++++++++++- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 79fad584a..0270d4959 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -220,10 +220,12 @@ -
+
-
+
+
Suggestions
+
@@ -386,7 +388,8 @@ following: [], followingCursor: 1, followingMore: true, - lightboxMedia: false + lightboxMedia: false, + showSuggestions: false } }, @@ -406,6 +409,12 @@ this.modes.dark = true; } + if(localStorage.getItem('pf_metro_ui.exp.rec') == 'false') { + this.showSuggestions = false; + } else { + this.showSuggestions = true; + } + this.$nextTick(function () { $('[data-toggle="tooltip"]').tooltip() }); @@ -1006,6 +1015,11 @@ ownerOrAdmin(status) { return this.owner(status) || this.admin(); + }, + + hideSuggestions() { + localStorage.setItem('pf_metro_ui.exp.rec', false); + this.showSuggestions = false; } } } diff --git a/resources/views/settings/labs.blade.php b/resources/views/settings/labs.blade.php index 47613a8ec..c7dcae813 100644 --- a/resources/views/settings/labs.blade.php +++ b/resources/views/settings/labs.blade.php @@ -38,6 +38,15 @@

Use dark mode theme.

+ @if(config('exp.rec') == true) +
+ + +

Show Profile Suggestions

+
+ @endif

Discovery


@@ -58,4 +67,24 @@
- @endsection \ No newline at end of file + @endsection + +@push('scripts') + +@endpush \ No newline at end of file