Skip to content

Commit c552b6f

Browse files
committed
fix(simkl): update api and fix toggle
1 parent ce7cd14 commit c552b6f

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/components/views/settings/SettingsCache.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const evictScopes = computed(() =>
8989
{
9090
label: i18n('evict_simkl'),
9191
click: TraktService.evict.simkl,
92-
disabled: simklEnabled.value,
92+
disabled: !simklEnabled.value,
9393
},
9494
{
9595
label: i18n('evict_all'),

src/components/views/settings/SettingsComponent.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const sections = computed<Section[]>(() =>
3535
title: 'menu__connect',
3636
reference: ref(),
3737
component: SettingsConnect,
38-
disabled: simklEnabled.value,
38+
disabled: !simklEnabled.value,
3939
},
4040
{ title: 'menu__tabs', reference: ref(), component: SettingsTabs },
4141
{ title: 'menu__links', reference: ref(), component: SettingsLinks },

src/settings/simkl.used.api.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { anime } from '@dvcol/simkl-http-client/api/anime';
12
import { minimalSimklApi } from '@dvcol/simkl-http-client/api/minimal';
23
import { movie } from '@dvcol/simkl-http-client/api/movie';
34
import { show } from '@dvcol/simkl-http-client/api/show';
@@ -7,5 +8,6 @@ export const simklUsedApi = {
78
...minimalSimklApi,
89
user,
910
show,
11+
anime,
1012
movie,
1113
};

src/stores/settings/extension.store.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ export const useExtensionSettingsStore = defineStore(ExtensionSettingsConstants.
9999

100100
const { user } = useAuthSettingsStoreRefs();
101101
const setLoadLists = (value: ListEntity[], _user = user.value) => {
102-
if (!loadLists[_user]) loadLists[_user] = value;
103-
else Object.assign(loadLists[_user], value);
102+
loadLists[_user] = value;
104103
};
105104

106105
const restoreState = async () => {

0 commit comments

Comments
 (0)