chore: Enable YearInReview for everyone, include analytics (#13090)

Remove the query param condition and enable it for everyone.
This commit is contained in:
Pranav
2025-12-16 18:20:10 -08:00
committed by GitHub
parent fd8919b901
commit b6a14bda48
4 changed files with 13 additions and 9 deletions

View File

@@ -1,6 +1,5 @@
<script setup>
import { ref, computed } from 'vue';
import { useRoute } from 'vue-router';
import Auth from 'dashboard/api/auth';
import { useMapGetter } from 'dashboard/composables/store';
import { useI18n } from 'vue-i18n';
@@ -25,7 +24,6 @@ defineOptions({
});
const { t } = useI18n();
const route = useRoute();
const { uiSettings } = useUISettings();
const currentUser = useMapGetter('getCurrentUser');
@@ -47,7 +45,7 @@ const isBannerClosed = computed(() => {
});
const showYearInReviewMenuItem = computed(() => {
return route.query['year-in-review'] === 'true' && isBannerClosed.value;
return isBannerClosed.value;
});
const openYearInReviewModal = () => {