adjust navigation menu visibility logic and related UI text

This commit is contained in:
pa
2026-03-23 19:24:30 +09:00
parent a05a17879c
commit 387d38a496
3 changed files with 4 additions and 13 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
<template> <template>
<Sidebar side="left" variant="sidebar" collapsible="icon"> <Sidebar side="left" variant="sidebar" collapsible="icon">
<SidebarHeader v-if="showNewDashboardButton && !hasDashboards" class="px-2 py-2"> <SidebarHeader v-if="showNewDashboardButton" class="px-2 py-2">
<SidebarMenu> <SidebarMenu>
<SidebarMenuItem> <SidebarMenuItem>
<SidebarMenuButton <SidebarMenuButton
@@ -279,7 +279,6 @@
const collapsedDropdownOpenId = ref(null); const collapsedDropdownOpenId = ref(null);
const customNavDialogVisible = ref(false); const customNavDialogVisible = ref(false);
const hasDashboards = computed(() => dashboards.value.length > 0);
const hasNotifications = computed(() => notifiedMenus.value.length > 0); const hasNotifications = computed(() => notifiedMenus.value.length > 0);
const version = computed(() => appVersion.value?.split('VRCX ')?.[1] || '-'); const version = computed(() => appVersion.value?.split('VRCX ')?.[1] || '-');
const vrcxLogo = new URL('../../../images/VRCX.png', import.meta.url).href; const vrcxLogo = new URL('../../../images/VRCX.png', import.meta.url).href;
+2 -2
View File
@@ -146,7 +146,7 @@
"instance_not_in_game": "Not in game", "instance_not_in_game": "Not in game",
"time_ago": "{time} ago" "time_ago": "{time} ago"
}, },
"first_save_tip": "You can create more dashboards. Right-click the Navigation Menu or use the Customize Navigation dialog to add new ones.", "first_save_tip": "You can hide the New Dashboard button in Settings > Interface > Navigation.",
"confirmations": { "confirmations": {
"delete_title": "Delete Dashboard", "delete_title": "Delete Dashboard",
"delete_description": "Are you sure you want to delete this dashboard? This action cannot be undone." "delete_description": "Are you sure you want to delete this dashboard? This action cannot be undone."
@@ -708,7 +708,7 @@
"interface": { "interface": {
"navigation": { "navigation": {
"header": "Navigation", "header": "Navigation",
"show_new_dashboard_button": "Show \"New Dashboard\" Button" "show_new_dashboard_button": "Show New Dashboard Button"
}, },
"lists_tables": { "lists_tables": {
"header": "Lists & Tables" "header": "Lists & Tables"
@@ -333,15 +333,7 @@
</template> </template>
<script setup> <script setup>
import { import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectSeparator,
SelectTrigger,
SelectValue
} from '@/components/ui/select';
import { import {
DropdownMenu, DropdownMenu,
DropdownMenuCheckboxItem, DropdownMenuCheckboxItem,