30 lines
826 B
Vue
30 lines
826 B
Vue
<template>
|
|
<div class="dashboard settings-page">
|
|
<header-bar showMenu showLogo />
|
|
<div class="settings-page-heading">
|
|
<h1>{{ heading }}</h1>
|
|
</div>
|
|
<p v-if="layout.loading" role="status">{{ t("files.loading") }}</p>
|
|
<router-view />
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { computed } from "vue";
|
|
import { useRoute } from "vue-router";
|
|
import { useLayoutStore } from "@/stores/layout";
|
|
import HeaderBar from "@/components/header/HeaderBar.vue";
|
|
import { useI18n } from "vue-i18n";
|
|
const { t } = useI18n();
|
|
const route = useRoute();
|
|
const heading = computed(() =>
|
|
t(
|
|
route.name === "GlobalSettings"
|
|
? "explorer.adminSettings"
|
|
: route.name === "Shares"
|
|
? "settings.shareManagement"
|
|
: "sidebar.settings"
|
|
)
|
|
);
|
|
const layout = useLayoutStore();
|
|
</script>
|