feat(settings): display current settings page

This commit is contained in:
2026-07-28 20:08:22 +02:00
committed by jakob.scheid
parent d63a0e5bca
commit 139c6f4ef5
2 changed files with 83 additions and 2 deletions
+10 -2
View File
@@ -16,6 +16,7 @@ limitations under the License.
<script setup>
import LeftSidebarLayout from '@/layouts/LeftSidebarLayout.vue';
import SettingsPage from '../components/SettingsPage.vue';
import { loadSettingsConfig } from '../utils/settingsParser';
import { onMounted, ref, watchEffect } from 'vue';
@@ -28,7 +29,7 @@ const router = useRouter();
const settingsLoaded = ref(false)
const settings = ref([]);
const activeSectionContent = ref([]);
const activeSectionContent = ref({});
const activeSection = ref(null);
watchEffect(() => {
@@ -80,10 +81,13 @@ onMounted(async () => {
</li>
</ul>
</template>
<div>
<div class="settings-main-content">
<div v-if="!settingsLoaded">
{{ t('loading') }}
</div>
<div v-else>
<SettingsPage :setting="activeSectionContent" :path="activeSection" />
</div>
</div>
</LeftSidebarLayout>
</div>
@@ -127,4 +131,8 @@ onMounted(async () => {
font-size: 1rem;
display: block;
}
.settings-main-content {
padding: 0 30%;
}
</style>