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