From 46d0d8bf0ea664013a10f22d0801ba84d5d81be0 Mon Sep 17 00:00:00 2001 From: Mircea Roata Date: Thu, 15 Feb 2024 01:08:15 +0200 Subject: [PATCH] Fix some buttons being wrongly tied to canModify --- frontend/src/lib/components/left-bar/LeftBar.svelte | 4 ++-- frontend/src/lib/components/mod-details/ModDetails.svelte | 5 +---- frontend/src/lib/components/mods-list/ModsListItem.svelte | 4 ++-- frontend/src/lib/store/ficsitCLIStore.ts | 8 ++++++++ 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/left-bar/LeftBar.svelte b/frontend/src/lib/components/left-bar/LeftBar.svelte index 9e828660..66316b94 100644 --- a/frontend/src/lib/components/left-bar/LeftBar.svelte +++ b/frontend/src/lib/components/left-bar/LeftBar.svelte @@ -14,7 +14,7 @@ import SvgIcon from '$lib/components/SVGIcon.svelte'; import Select from '$lib/components/Select.svelte'; - import { canModify, installs, installsMetadata, modsEnabled, profiles, selectedInstall, selectedProfile } from '$lib/store/ficsitCLIStore'; + import { canChangeInstall, canModify, installs, installsMetadata, modsEnabled, profiles, selectedInstall, selectedProfile } from '$lib/store/ficsitCLIStore'; import { error, siteURL } from '$lib/store/generalStore'; import { getModalStore } from '$lib/store/skeletonExtensions'; import { OpenExternal } from '$wailsjs/go/app/app'; @@ -120,7 +120,7 @@ name="installsCombobox" class="w-full h-8" buttonClass="bg-surface-200-700-token px-4 text-sm" - disabled={!$canModify} + disabled={!$canChangeInstall} itemActiveClass="!bg-surface-300/20" itemClass="bg-surface-50-900-token" items={_.orderBy($installs)} diff --git a/frontend/src/lib/components/mod-details/ModDetails.svelte b/frontend/src/lib/components/mod-details/ModDetails.svelte index ca1a9577..850c2688 100644 --- a/frontend/src/lib/components/mod-details/ModDetails.svelte +++ b/frontend/src/lib/components/mod-details/ModDetails.svelte @@ -365,10 +365,7 @@ {#if (!mod || !('offline' in mod)) && !$offline}
-