itube-specs 0.0.614 → 0.0.616
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,6 @@ import { FeatureFlags } from '~/config/featureFlags.config';
|
|
|
2
2
|
|
|
3
3
|
export function useNavigationItems() {
|
|
4
4
|
const { favoritesLink } = useFavorites();
|
|
5
|
-
|
|
6
5
|
const navigationItems = computed(() => {
|
|
7
6
|
const favLink = favoritesLink.value ?? '';
|
|
8
7
|
|
|
@@ -46,7 +45,6 @@ export function useNavigationItems() {
|
|
|
46
45
|
}] : []),
|
|
47
46
|
...(FeatureFlags.FeatureFavoritesEnabled ? [{
|
|
48
47
|
title: 'favorites',
|
|
49
|
-
link: favLink,
|
|
50
48
|
icon: 'heart',
|
|
51
49
|
top: true,
|
|
52
50
|
childs: [
|
package/composables/use-user.ts
CHANGED
|
@@ -116,12 +116,16 @@ export const useUser = (apiService) => {
|
|
|
116
116
|
const profile = useState<IProfileData | null>('profileData');
|
|
117
117
|
profile.value = null;
|
|
118
118
|
|
|
119
|
+
const { favoritesId, favoritesFirstVideoId } = useFavorites();
|
|
120
|
+
favoritesId.value = null;
|
|
121
|
+
favoritesFirstVideoId.value = null;
|
|
122
|
+
|
|
119
123
|
const router = useRouter();
|
|
120
124
|
router.push(generateLink('/'));
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
return {
|
|
124
|
-
isAuthorized: computed(() =>
|
|
128
|
+
isAuthorized: computed(() => !!useCookie('jwtoken').value),
|
|
125
129
|
register,
|
|
126
130
|
login,
|
|
127
131
|
password,
|
package/package.json
CHANGED