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
|
// React Scan disabled - too heavy for development
|
||||||
// Uncomment if you need to debug render performance:
|
// Uncomment if you need to debug render performance:
|
||||||
if (import.meta.env.DEV) {
|
if (import.meta.env.DEV) {
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
import("react-scan").then(({ scan }) => {
|
// import("react-scan").then(({ scan }) => {
|
||||||
scan({ enabled: true, log: false });
|
// scan({ enabled: true, log: false });
|
||||||
});
|
// });
|
||||||
}, 2000);
|
// }, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize Tauri native context menu handler
|
// Initialize Tauri native context menu handler
|
||||||
|
|||||||
@ -496,7 +496,7 @@ function AddStorageDialog(props: {
|
|||||||
// Step 1: Track the volume
|
// Step 1: Track the volume
|
||||||
const trackResult = await trackVolume.mutateAsync({
|
const trackResult = await trackVolume.mutateAsync({
|
||||||
fingerprint: volume.fingerprint,
|
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
|
// Step 2: Create a location for the volume's mount point
|
||||||
@ -507,7 +507,7 @@ function AddStorageDialog(props: {
|
|||||||
path: volume.mount_point || "/",
|
path: volume.mount_point || "/",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
name: volume.name,
|
name: volume.display_name || volume.name,
|
||||||
mode: "Deep",
|
mode: "Deep",
|
||||||
job_policies: {},
|
job_policies: {},
|
||||||
};
|
};
|
||||||
@ -856,7 +856,7 @@ function AddStorageDialog(props: {
|
|||||||
/>
|
/>
|
||||||
<div className="flex-1 min-w-0">
|
<div className="flex-1 min-w-0">
|
||||||
<div className="text-sm font-medium text-ink truncate">
|
<div className="text-sm font-medium text-ink truncate">
|
||||||
{volume.name}
|
{volume.display_name || volume.name}
|
||||||
</div>
|
</div>
|
||||||
<div className="text-xs text-ink-faint">
|
<div className="text-xs text-ink-faint">
|
||||||
{volume.mount_point} •{" "}
|
{volume.mount_point} •{" "}
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export function VolumesGroup({
|
|||||||
item_type: {
|
item_type: {
|
||||||
Volume: {
|
Volume: {
|
||||||
volume_id: volume.id,
|
volume_id: volume.id,
|
||||||
name: volume.name,
|
name: volume.display_name || volume.name,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
} as any
|
} 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 justify-between mb-3">
|
||||||
<div className="flex items-center gap-2 min-w-0">
|
<div className="flex items-center gap-2 min-w-0">
|
||||||
<span className="font-semibold text-ink truncate text-base">
|
<span className="font-semibold text-ink truncate text-base">
|
||||||
{volume.name}
|
{volume.display_name || volume.name}
|
||||||
</span>
|
</span>
|
||||||
{!volume.is_online && (
|
{!volume.is_online && (
|
||||||
<span className="px-2 py-0.5 bg-app-box text-ink-faint text-xs rounded-md border border-app-line">
|
<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