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.
@@ -16,4 +16,4 @@ export const useFavorites = () => {
16
16
  favoritesFirstVideoId,
17
17
  favoritesLink,
18
18
  };
19
- };
19
+ };
@@ -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: [
@@ -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(() => import.meta.client && !!useCookie('jwtoken').value),
128
+ isAuthorized: computed(() => !!useCookie('jwtoken').value),
125
129
  register,
126
130
  login,
127
131
  password,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.614",
4
+ "version": "0.0.616",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  export interface INavigationItems {
2
2
  title: string
3
- link: string
3
+ link?: string
4
4
  icon?: string
5
5
  accent?: string
6
6
  top?: boolean