mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
fix volume display name and disable react-scan
This commit is contained in:
parent
c139aa938f
commit
2770a7a8a9
@ -30,11 +30,11 @@ function App() {
|
||||
// React Scan disabled - too heavy for development
|
||||
// Uncomment if you need to debug render performance:
|
||||
if (import.meta.env.DEV) {
|
||||
setTimeout(() => {
|
||||
import("react-scan").then(({ scan }) => {
|
||||
scan({ enabled: true, log: false });
|
||||
});
|
||||
}, 2000);
|
||||
// setTimeout(() => {
|
||||
// import("react-scan").then(({ scan }) => {
|
||||
// scan({ enabled: true, log: false });
|
||||
// });
|
||||
// }, 2000);
|
||||
}
|
||||
|
||||
// Initialize Tauri native context menu handler
|
||||
|
||||
@ -496,7 +496,7 @@ function AddStorageDialog(props: {
|
||||
// Step 1: Track the volume
|
||||
const trackResult = await trackVolume.mutateAsync({
|
||||
fingerprint: volume.fingerprint,
|
||||
display_name: volume.name,
|
||||
display_name: volume.display_name || volume.name,
|
||||
});
|
||||
|
||||
// Step 2: Create a location for the volume's mount point
|
||||
@ -507,7 +507,7 @@ function AddStorageDialog(props: {
|
||||
path: volume.mount_point || "/",
|
||||
},
|
||||
},
|
||||
name: volume.name,
|
||||
name: volume.display_name || volume.name,
|
||||
mode: "Deep",
|
||||
job_policies: {},
|
||||
};
|
||||
@ -856,7 +856,7 @@ function AddStorageDialog(props: {
|
||||
/>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="text-sm font-medium text-ink truncate">
|
||||
{volume.name}
|
||||
{volume.display_name || volume.name}
|
||||
</div>
|
||||
<div className="text-xs text-ink-faint">
|
||||
{volume.mount_point} •{" "}
|
||||
|
||||
@ -59,7 +59,7 @@ export function VolumesGroup({
|
||||
item_type: {
|
||||
Volume: {
|
||||
volume_id: volume.id,
|
||||
name: volume.name,
|
||||
name: volume.display_name || volume.name,
|
||||
},
|
||||
},
|
||||
} as any
|
||||
|
||||
@ -216,7 +216,7 @@ function VolumeBar({ volume, index }: VolumeBarProps) {
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<span className="font-semibold text-ink truncate text-base">
|
||||
{volume.name}
|
||||
{volume.display_name || volume.name}
|
||||
</span>
|
||||
{!volume.is_online && (
|
||||
<span className="px-2 py-0.5 bg-app-box text-ink-faint text-xs rounded-md border border-app-line">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user