Skip to content

Commit

Permalink
feat: reorganize component settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 4, 2024
1 parent 37252d8 commit ef72cf5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,24 @@ export default defineComponent({
</VueGroup>
</div>

<div class="space-y-1 px-3 py-2 text-sm">
<VueSwitch v-model="$shared.performanceMonitoringEnabled">
Performance monitoring
</VueSwitch>
<div class="flex items-center space-x-1 text-xs opacity-50">
<span>Turn off if your app is slowed down</span>
</div>
</div>

<div class="space-y-1 px-3 py-2 text-sm">
<VueSwitch v-model="$shared.trackUpdates">
Update tracking
</VueSwitch>
<div class="flex items-center space-x-1 text-xs opacity-50">
<span>Turn off if your app is slowed down</span>
</div>
</div>

<div class="space-y-1 px-3 py-2 text-sm">
<VueSwitch v-model="$shared.editableProps">
Editable props
Expand Down
2 changes: 1 addition & 1 deletion packages/app-frontend/src/features/plugin/Plugins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineComponent({
icon-right="arrow_forward"
class="flat"
>
Global settings
Settings
</VueButton>
</div>
<div class="overflow-y-auto">
Expand Down
44 changes: 22 additions & 22 deletions packages/app-frontend/src/features/settings/GlobalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,28 +92,6 @@ const hideEvents = useLocalStorage('split-pane-collapsed-right-timeline-right',
</template>
</VueFormField>

<VueFormField
title="Performance monitoring"
>
<VueSwitch v-model="$shared.performanceMonitoringEnabled">
Enable
</VueSwitch>
<template #subtitle>
Turn off if your app is slowed down
</template>
</VueFormField>

<VueFormField
title="Update tracking"
>
<VueSwitch v-model="$shared.trackUpdates">
Enable
</VueSwitch>
<template #subtitle>
Turn off if your app is slowed down
</template>
</VueFormField>

<VueFormField
title="Debugging info"
>
Expand Down Expand Up @@ -145,6 +123,28 @@ const hideEvents = useLocalStorage('split-pane-collapsed-right-timeline-right',
</VueGroup>
</VueFormField>

<VueFormField
title="Performance monitoring"
>
<VueSwitch v-model="$shared.performanceMonitoringEnabled">
Enable
</VueSwitch>
<template #subtitle>
Turn off if your app is slowed down
</template>
</VueFormField>

<VueFormField
title="Update tracking"
>
<VueSwitch v-model="$shared.trackUpdates">
Enable
</VueSwitch>
<template #subtitle>
Turn off if your app is slowed down
</template>
</VueFormField>

<VueFormField
title="Editable props"
>
Expand Down

0 comments on commit ef72cf5

Please sign in to comment.