Skip to content

Commit d30cf0b

Browse files
committed
fix: bugs
1 parent 8279f8a commit d30cf0b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

apps/app-frontend/src/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
nodeAuthState,
66
PanelVersionFeature,
77
TauriModrinthClient,
8+
VerboseLoggingFeature,
89
} from '@modrinth/api-client'
910
import {
1011
ArrowBigUpDashIcon,
@@ -146,6 +147,7 @@ const tauriApiClient = new TauriModrinthClient({
146147
token: async () => (await getCreds())?.session,
147148
}),
148149
new PanelVersionFeature(),
150+
new VerboseLoggingFeature(),
149151
],
150152
})
151153
provideModrinthClient(tauriApiClient)
@@ -420,6 +422,7 @@ const route = useRoute()
420422
421423
const loading = useLoading()
422424
loading.setEnabled(false)
425+
loading.startLoading()
423426
424427
const error = useError()
425428
const errorModal = ref()
@@ -1023,6 +1026,8 @@ provideAppUpdateDownloadProgress(appUpdateDownload)
10231026
v-if="themeStore.featureFlags.servers_in_app"
10241027
v-tooltip.right="'Servers'"
10251028
to="/hosting/manage"
1029+
:is-primary="(r) => r.path === '/hosting/manage' || r.path === '/hosting/manage/'"
1030+
:is-subpage="(r) => r.path.startsWith('/hosting/manage/') && r.path !== '/hosting/manage/'"
10261031
>
10271032
<ServerIcon />
10281033
</NavButton>

apps/app-frontend/src/components/ui/NavButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
v-if="typeof to === 'string'"
44
:to="to"
55
v-bind="$attrs"
6+
:active-class="isSubpage ? '' : undefined"
67
:class="{
78
'router-link-active': isPrimary && isPrimary(route),
89
'subpage-active': isSubpage && isSubpage(route),

packages/ui/src/layouts/shared/server-settings/pages/properties.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ function flattenProperties(data: Archon.Content.v1.PropertiesFields): Record<str
346346
347347
const liveProperties = ref<Record<string, string>>({})
348348
const originalProperties = ref<Record<string, string>>({})
349+
let previousSpawnProtection = '16'
349350
350351
function syncFormFromData() {
351352
if (!propsData.value) return
@@ -380,8 +381,6 @@ watch(powerState, () => {
380381
queryClient.invalidateQueries({ queryKey: queryKey.value })
381382
})
382383
383-
let previousSpawnProtection = '16'
384-
385384
const combinedGamemode = computed<CombinedGamemode>({
386385
get() {
387386
if (liveProperties.value.hardcore === 'true') return 'hardcore'

0 commit comments

Comments
 (0)