fix: remove empty DataManagement tab from settings (was Sora S3 storage)
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="space-y-6">
|
|
||||||
<!-- Placeholder: no data management content configured -->
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
</script>
|
|
||||||
@@ -1956,13 +1956,8 @@
|
|||||||
<BackupSettings />
|
<BackupSettings />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tab: Data Management -->
|
|
||||||
<div v-show="activeTab === 'data'">
|
|
||||||
<DataManagementSettings />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Save Button -->
|
<!-- Save Button -->
|
||||||
<div v-show="activeTab !== 'backup' && activeTab !== 'data'" class="flex justify-end">
|
<div v-show="activeTab !== 'backup'" class="flex justify-end">
|
||||||
<button type="submit" :disabled="saving || loadFailed" class="btn btn-primary">
|
<button type="submit" :disabled="saving || loadFailed" class="btn btn-primary">
|
||||||
<svg v-if="saving" class="h-4 w-4 animate-spin" fill="none" viewBox="0 0 24 24">
|
<svg v-if="saving" class="h-4 w-4 animate-spin" fill="none" viewBox="0 0 24 24">
|
||||||
<circle
|
<circle
|
||||||
@@ -2005,7 +2000,6 @@ import GroupOptionItem from '@/components/common/GroupOptionItem.vue'
|
|||||||
import Toggle from '@/components/common/Toggle.vue'
|
import Toggle from '@/components/common/Toggle.vue'
|
||||||
import ImageUpload from '@/components/common/ImageUpload.vue'
|
import ImageUpload from '@/components/common/ImageUpload.vue'
|
||||||
import BackupSettings from '@/views/admin/BackupView.vue'
|
import BackupSettings from '@/views/admin/BackupView.vue'
|
||||||
import DataManagementSettings from '@/views/admin/DataManagementView.vue'
|
|
||||||
import { useClipboard } from '@/composables/useClipboard'
|
import { useClipboard } from '@/composables/useClipboard'
|
||||||
import { useAppStore } from '@/stores'
|
import { useAppStore } from '@/stores'
|
||||||
import { useAdminSettingsStore } from '@/stores/adminSettings'
|
import { useAdminSettingsStore } from '@/stores/adminSettings'
|
||||||
@@ -2020,7 +2014,7 @@ const { t } = useI18n()
|
|||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
const adminSettingsStore = useAdminSettingsStore()
|
const adminSettingsStore = useAdminSettingsStore()
|
||||||
|
|
||||||
type SettingsTab = 'general' | 'security' | 'users' | 'gateway' | 'email' | 'backup' | 'data'
|
type SettingsTab = 'general' | 'security' | 'users' | 'gateway' | 'email' | 'backup'
|
||||||
const activeTab = ref<SettingsTab>('general')
|
const activeTab = ref<SettingsTab>('general')
|
||||||
const settingsTabs = [
|
const settingsTabs = [
|
||||||
{ key: 'general' as SettingsTab, icon: 'home' as const },
|
{ key: 'general' as SettingsTab, icon: 'home' as const },
|
||||||
@@ -2029,7 +2023,6 @@ const settingsTabs = [
|
|||||||
{ key: 'gateway' as SettingsTab, icon: 'server' as const },
|
{ key: 'gateway' as SettingsTab, icon: 'server' as const },
|
||||||
{ key: 'email' as SettingsTab, icon: 'mail' as const },
|
{ key: 'email' as SettingsTab, icon: 'mail' as const },
|
||||||
{ key: 'backup' as SettingsTab, icon: 'database' as const },
|
{ key: 'backup' as SettingsTab, icon: 'database' as const },
|
||||||
{ key: 'data' as SettingsTab, icon: 'cube' as const },
|
|
||||||
]
|
]
|
||||||
const { copyToClipboard } = useClipboard()
|
const { copyToClipboard } = useClipboard()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user